diff options
author | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2010-04-08 12:48:18 (GMT) |
---|---|---|
committer | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2010-04-08 12:51:53 (GMT) |
commit | 899fbfebbed4f0e7d0085b578248f8cbae68d30f (patch) | |
tree | 28e42e0897ea775e9cfc33cd6f8732a614fda092 /tests/benchmarks/corelib | |
parent | 3c546be51dbdc1064a14cfcd178f7fbb5c6bff75 (diff) | |
download | Qt-899fbfebbed4f0e7d0085b578248f8cbae68d30f.zip Qt-899fbfebbed4f0e7d0085b578248f8cbae68d30f.tar.gz Qt-899fbfebbed4f0e7d0085b578248f8cbae68d30f.tar.bz2 |
The cmd line arguments have not been delegated properly.
Task-number: QT-9377
Reviewed-by: Joao
Diffstat (limited to 'tests/benchmarks/corelib')
-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" |