summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/benchlibcounting/tst_benchlibcounting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/testlib/selftests/benchlibcounting/tst_benchlibcounting.cpp')
-rw-r--r--tests/auto/testlib/selftests/benchlibcounting/tst_benchlibcounting.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/auto/testlib/selftests/benchlibcounting/tst_benchlibcounting.cpp b/tests/auto/testlib/selftests/benchlibcounting/tst_benchlibcounting.cpp
index 40dd0bc25f..9903a1bd59 100644
--- a/tests/auto/testlib/selftests/benchlibcounting/tst_benchlibcounting.cpp
+++ b/tests/auto/testlib/selftests/benchlibcounting/tst_benchlibcounting.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
@@ -59,14 +59,11 @@ void tst_BenchlibCounting::failingBenchmark()
};
}
-int main(int argc, char *argv[])
-{
+QTEST_MAIN_WRAPPER(tst_BenchlibCounting,
std::vector<const char*> args(argv, argv + argc);
args.push_back("-eventcounter");
argc = args.size();
argv = const_cast<char**>(&args[0]);
-
- QTEST_MAIN_IMPL(tst_BenchlibCounting)
-}
+ QTEST_MAIN_SETUP())
#include "tst_benchlibcounting.moc"