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-27 10:11:12 (GMT) |
commit | 85dad87b4969ad9cf96116367132ad18b0e7a4bb (patch) | |
tree | 013aaef56e1026311650b89c6ad3315824fcc7ef /tests/benchmarks | |
parent | 44fae8e280c71c835bcef5148f6b27946040a704 (diff) | |
download | Qt-85dad87b4969ad9cf96116367132ad18b0e7a4bb.zip Qt-85dad87b4969ad9cf96116367132ad18b0e7a4bb.tar.gz Qt-85dad87b4969ad9cf96116367132ad18b0e7a4bb.tar.bz2 |
The cmd line arguments have not been delegated properly.
Task-number: QT-9377
Reviewed-by: Joao
Diffstat (limited to 'tests/benchmarks')
-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" |