summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp')
-rw-r--r--tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp b/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp
index d036c64d1f..a2f91896f4 100644
--- a/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp
+++ b/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.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.
@@ -72,14 +72,11 @@ void tst_PrintDataTags::c() const
{
}
-int main(int argc, char *argv[])
-{
+QTEST_MAIN_WRAPPER(tst_PrintDataTags,
std::vector<const char*> args(argv, argv + argc);
args.push_back("-datatags");
argc = int(args.size());
argv = const_cast<char**>(&args[0]);
-
- QTEST_MAIN_IMPL(tst_PrintDataTags)
-}
+ QTEST_MAIN_SETUP())
#include "tst_printdatatags.moc"