diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-27 13:41:07 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-27 13:41:07 (GMT) |
commit | 42a165717b52181e43a74a1e4f222f2dadee3942 (patch) | |
tree | 8c48d9771c9fd5988fadf56b34a6f3a9f6a6d2dc /tests | |
parent | d9c096ac73f86e321060e379a0df449bed1df310 (diff) | |
parent | 85dad87b4969ad9cf96116367132ad18b0e7a4bb (diff) | |
download | Qt-42a165717b52181e43a74a1e4f222f2dadee3942.zip Qt-42a165717b52181e43a74a1e4f222f2dadee3942.tar.gz Qt-42a165717b52181e43a74a1e4f222f2dadee3942.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public:
The cmd line arguments have not been delegated properly.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/benchmarks/corelib/tools/qstringbuilder/main.cpp | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/tests/benchmarks/corelib/tools/qstringbuilder/main.cpp b/tests/benchmarks/corelib/tools/qstringbuilder/main.cpp index 9bd146f..d46a36b 100644 --- a/tests/benchmarks/corelib/tools/qstringbuilder/main.cpp +++ b/tests/benchmarks/corelib/tools/qstringbuilder/main.cpp @@ -428,37 +428,6 @@ private: std::string stdr; }; - -//void operator%(QString, int) {} - -int main(int argc, char *argv[]) -{ - //qDebug() << (QString("xx") * QLatin1String("y")).toString(); - //42 % 3; // Sanity test, should always work. - //QString("x") % 2; // Sanity test, should only compile when the - // operator%(QString, int) is visible. - - if (argc == 2 && (QLatin1String(argv[1]) == QLatin1String("--run-builder") - || QLatin1String(argv[1]) == QLatin1String("-b"))) { - tst_qstringbuilder test; - return test.run_builder(); - } - - if (argc == 2 && (QLatin1String(argv[1]) == QLatin1String("--run-traditional") - || QLatin1String(argv[1]) == QLatin1String("-t"))) { - tst_qstringbuilder test; - return test.run_traditional(); - } - - if (argc == 1) { - QCoreApplication app(argc, argv); - QStringList args = app.arguments(); - tst_qstringbuilder test; - return QTest::qExec(&test, argc, argv); - } - - qDebug() << "Usage: " << argv[0] << " [--run-builder|-r|--run-traditional|-t]"; -} - +QTEST_MAIN(tst_qstringbuilder) #include "main.moc" |