From 5d9b4fe6360e261b40e54e1acbba55a921414e22 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 19 Feb 2013 17:10:22 +0100 Subject: Hide warnings in settings autotest Change-Id: I087003da9da37be2379bf07f8494612167c8dba3 Reviewed-by: Christian Stenger --- tests/auto/installer/settings/tst_settings.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp index ac092554c..4029ace67 100644 --- a/tests/auto/installer/settings/tst_settings.cpp +++ b/tests/auto/installer/settings/tst_settings.cpp @@ -78,6 +78,8 @@ void tst_Settings::loadFullConfig() void tst_Settings::loadEmptyConfig() { + QTest::ignoreMessage(QtWarningMsg, "Error-Exception: \"Missing or empty tag in " + ":/data/empty_config.xml.\" "); try { Settings::fromFileAndPrefix(":/data/empty_config.xml", ":/data"); } catch (const Error &error) { @@ -89,6 +91,9 @@ void tst_Settings::loadEmptyConfig() void tst_Settings::loadNotExistingConfig() { + QTest::ignoreMessage(QtWarningMsg, "Error-Exception: \"Could not open settings file " + ":/data/inexisting_config.xml for reading: " + "Unknown error\" "); try { Settings::fromFileAndPrefix(":/data/inexisting_config.xml", ":/data"); } catch (const Error &error) { @@ -102,6 +107,8 @@ void tst_Settings::loadNotExistingConfig() void tst_Settings::loadMalformedConfig() { + QTest::ignoreMessage(QtWarningMsg, "Error-Exception: \"Error in :/data/malformed_config.xml, " + "line 9, column 0: Premature end of document.\" "); try { Settings::fromFileAndPrefix(":/data/malformed_config.xml", ":/data"); } catch (const Error &error) { @@ -114,6 +121,8 @@ void tst_Settings::loadMalformedConfig() void tst_Settings::loadUnknownElementConfig() { + QTest::ignoreMessage(QtWarningMsg, "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"); } catch (const Error &error) { -- cgit v1.2.3