summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/commandlinedata
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-02-06 12:07:04 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-02-06 23:43:05 +0100
commit8237e39f5dfa5e6e43aca7d7b9107c666d40de7b (patch)
treedd490b65d6ba1567cede59822ee5f1e0cda9f1c8 /tests/auto/testlib/selftests/commandlinedata
parentdbdb3cbc907fed4055adaa848dd5e36fb67b2263 (diff)
testlib: Move subtest argument handling to individual tests
The test orchestrator shouldn't have to deal with the individual options needed for each test. Change-Id: I78bbf4850cc649e625bd08a7aedf02267ba1314d Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/commandlinedata')
-rw-r--r--tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp b/tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp
index 8cb1192ea2..a916fd7f1e 100644
--- a/tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp
+++ b/tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp
@@ -63,6 +63,16 @@ void tst_DataTable::fiveTablePasses_data() const
QTest::newRow("fiveTablePasses_data5") << true;
}
-QTEST_MAIN(tst_DataTable)
+int main(int argc, char *argv[])
+{
+ std::vector<const char*> args(argv, argv + argc);
+ args.push_back("fiveTablePasses");
+ args.push_back("fiveTablePasses:fiveTablePasses_data1");
+ args.push_back("-v2");
+ argc = args.size();
+ argv = const_cast<char**>(&args[0]);
+
+ QTEST_MAIN_IMPL(tst_DataTable)
+}
#include "tst_commandlinedata.moc"