summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@digia.com>2013-02-21 13:06:41 +0100
committerTim Jenssen <tim.jenssen@digia.com>2013-02-21 13:34:44 +0100
commitb9e9fd5d4c078a6dffe80bbdd948103d30b56287 (patch)
tree6ec0115412559aa08949e1b201d434c53b5a582f /tests/auto
parentf2f41399eac90bbdbaac3c122a2f7fd413f68f1b (diff)
no warning output if exception error is created
handling that exception and showing a warning belongs to the higher level of the code. Change-Id: If529cfc5a010fa7043053ca97c33dfb554c519de Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/installer/settings/tst_settings.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp
index c1d607074..1cbb16a48 100644
--- a/tests/auto/installer/settings/tst_settings.cpp
+++ b/tests/auto/installer/settings/tst_settings.cpp
@@ -79,7 +79,7 @@ void tst_Settings::loadFullConfig()
void tst_Settings::loadEmptyConfig()
{
- QTest::ignoreMessage(QtWarningMsg, "Error-Exception: \"Missing or empty <Name> tag in "
+ QTest::ignoreMessage(QtDebugMsg, "Error-Exception: \"Missing or empty <Name> tag in "
":/data/empty_config.xml.\" ");
try {
Settings::fromFileAndPrefix(":/data/empty_config.xml", ":/data");
@@ -92,7 +92,7 @@ void tst_Settings::loadEmptyConfig()
void tst_Settings::loadNotExistingConfig()
{
- QTest::ignoreMessage(QtWarningMsg, "Error-Exception: \"Could not open settings file "
+ QTest::ignoreMessage(QtDebugMsg, "Error-Exception: \"Could not open settings file "
":/data/inexisting_config.xml for reading: "
"Unknown error\" ");
try {
@@ -108,7 +108,7 @@ void tst_Settings::loadNotExistingConfig()
void tst_Settings::loadMalformedConfig()
{
- QTest::ignoreMessage(QtWarningMsg, "Error-Exception: \"Error in :/data/malformed_config.xml, "
+ QTest::ignoreMessage(QtDebugMsg, "Error-Exception: \"Error in :/data/malformed_config.xml, "
"line 9, column 0: Premature end of document.\" ");
try {
Settings::fromFileAndPrefix(":/data/malformed_config.xml", ":/data");
@@ -122,7 +122,7 @@ void tst_Settings::loadMalformedConfig()
void tst_Settings::loadUnknownElementConfig()
{
- QTest::ignoreMessage(QtWarningMsg, "Error-Exception: \"Error in :/data/unknown_element_config.xml, line 5, "
+ QTest::ignoreMessage(QtDebugMsg, "Error-Exception: \"Error in :/data/unknown_element_config.xml, line 5, "
"column 13: Unexpected element 'unknown'.\" ");
try {
Settings::fromFileAndPrefix(":/data/unknown_element_config.xml", ":/data");