diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-03 11:55:20 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-03 10:05:01 +0000 |
commit | 0b1bd73a84fa51b0271d6509cf65068c1c7ea34c (patch) | |
tree | b17d93d47c9baa6bb2afc85255dc3bff5591cab2 /tests/postbuild | |
parent | 98caa1cf3f4789f2d3837553ad7e174580c0b00a (diff) |
Replace uses of deprecated QWARN macro with qWarning
Change-Id: I3172e3fa0dc51a4452a2da4dcbd43699b026f704
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/postbuild')
-rw-r--r-- | tests/postbuild/bic/tst_bic.cpp | 4 | ||||
-rw-r--r-- | tests/postbuild/global.h | 6 | ||||
-rw-r--r-- | tests/postbuild/headers/tst_headers.cpp | 2 | ||||
-rw-r--r-- | tests/postbuild/symbols/tst_symbols.cpp | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/postbuild/bic/tst_bic.cpp b/tests/postbuild/bic/tst_bic.cpp index 0110ad1c..8ce9cb13 100644 --- a/tests/postbuild/bic/tst_bic.cpp +++ b/tests/postbuild/bic/tst_bic.cpp @@ -346,7 +346,7 @@ void tst_Bic::initTestCase() const char qmake[] = "qmake.exe"; #endif - QWARN("This test needs the correct qmake in PATH, we need it to generate INCPATH for qt modules."); + qWarning("This test needs the correct qmake in PATH, we need it to generate INCPATH for qt modules."); qtModuleDir = QDir::cleanPath(QFile::decodeName(qgetenv(moduleVar))); if (qtModuleDir.isEmpty()) { @@ -360,7 +360,7 @@ void tst_Bic::initTestCase() } if (qgetenv("PATH").contains("teambuilder")) - QWARN("This test might not work with teambuilder, consider switching it off."); + qWarning("This test might not work with teambuilder, consider switching it off."); QString configFile = qtModuleDir + "/tests/global/global.cfg"; diff --git a/tests/postbuild/global.h b/tests/postbuild/global.h index e349d9dc..a0a90516 100644 --- a/tests/postbuild/global.h +++ b/tests/postbuild/global.h @@ -50,7 +50,7 @@ QHash<QString, QString> qt_tests_shared_global_get_modules(const QString &workDi QFile file(configFile); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - QWARN("Can't open the config file for global.cfg."); + qWarning("Can't open the config file for global.cfg."); return modules; } @@ -134,7 +134,7 @@ QStringList qt_tests_shared_run_qmake(const QString &workDir, #ifndef QT_NO_PROCESS QFile file(proFile); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { - QWARN("Can't open the pro file for global."); + qWarning("Can't open the pro file for global."); return result; } @@ -143,7 +143,7 @@ QStringList qt_tests_shared_run_qmake(const QString &workDir, file.close(); if (!QDir::setCurrent(workDir)) { - QWARN("Change working dir failed."); + qWarning("Change working dir failed."); return result; } diff --git a/tests/postbuild/headers/tst_headers.cpp b/tests/postbuild/headers/tst_headers.cpp index 53a17974..beafbae8 100644 --- a/tests/postbuild/headers/tst_headers.cpp +++ b/tests/postbuild/headers/tst_headers.cpp @@ -144,7 +144,7 @@ void tst_Headers::initTestCase() "not applicable"); } } else { - QWARN("Some test functions will be skipped, because we ignore them for phonon and qttools."); + qWarning("Some test functions will be skipped, because we ignore them for phonon and qttools."); } } diff --git a/tests/postbuild/symbols/tst_symbols.cpp b/tests/postbuild/symbols/tst_symbols.cpp index da41bef7..00efc750 100644 --- a/tests/postbuild/symbols/tst_symbols.cpp +++ b/tests/postbuild/symbols/tst_symbols.cpp @@ -201,9 +201,9 @@ void tst_Symbols::globalObjects() QString line = symbolToLine(symbol, dir.absolutePath() + "/" + lib); if (cap.contains('.')) - QWARN(qPrintable("Static global object(s) found in " + lib + " in file " + cap + " (" + line + ")")); + qWarning(qPrintable("Static global object(s) found in " + lib + " in file " + cap + " (" + line + ")")); else - QWARN(qPrintable("Static global object found in " + lib + " near symbol " + cap + " (" + line + ")")); + qWarning(qPrintable("Static global object found in " + lib + " near symbol " + cap + " (" + line + ")")); isFailed = true; } |