diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-06 08:26:48 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-06 08:49:08 (GMT) |
commit | eb6d70eeeaaafb748a5fca38f6f033136aadf148 (patch) | |
tree | a8b95fef3ecdbf14c5b0f550cd5ff95607283021 /tests/auto/compilerwarnings | |
parent | 8e1327f1d5caee67203a21929b1d85fb92d59cec (diff) | |
download | Qt-eb6d70eeeaaafb748a5fca38f6f033136aadf148.zip Qt-eb6d70eeeaaafb748a5fca38f6f033136aadf148.tar.gz Qt-eb6d70eeeaaafb748a5fca38f6f033136aadf148.tar.bz2 |
Test we do not have compiler warnings in our headers with more options
I removed some statics because else the test could not be run several times
Reviewed-by: Andreas Kling
Diffstat (limited to 'tests/auto/compilerwarnings')
-rw-r--r-- | tests/auto/compilerwarnings/tst_compilerwarnings.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/compilerwarnings/tst_compilerwarnings.cpp b/tests/auto/compilerwarnings/tst_compilerwarnings.cpp index 82c327a..8d344d8 100644 --- a/tests/auto/compilerwarnings/tst_compilerwarnings.cpp +++ b/tests/auto/compilerwarnings/tst_compilerwarnings.cpp @@ -114,6 +114,9 @@ void tst_CompilerWarnings::warnings_data() QTest::addColumn<QStringList>("cflags"); QTest::newRow("standard") << QStringList(); + QTest::newRow("warn deprecated, fast plus, no debug") << (QStringList() << "-DQT_DEPRECATED_WARNINGS" + << "-DQT_USE_FAST_OPERATOR_PLUS" << "-DQT_NU_DEBUG" << "-DQT_NO_DEBUG_STREAM" << "-DQT_NO_WARNING_OUTPUT"); + QTest::newRow("no deprecated, no keywords") << (QStringList() << "-DQT_NO_DEPRECATED" << "-DQT_NO_KEYWORDS"); #if 0 #ifdef Q_WS_QWS @@ -136,14 +139,14 @@ void tst_CompilerWarnings::warnings() QSKIP("gcc 3.x outputs too many bogus warnings", SkipAll); #endif - static QString tmpFile; + /*static*/ QString tmpFile; if (tmpFile.isEmpty()) { QTemporaryFile tmpQFile; tmpQFile.open(); tmpFile = tmpQFile.fileName(); tmpQFile.close(); } - static QString tmpSourceFile; + /*static*/ QString tmpSourceFile; bool openResult = true; const QString tmpBaseName("XXXXXX-test.cpp"); QString templatePath = QDir::temp().absoluteFilePath(tmpBaseName); |