summaryrefslogtreecommitdiff
path: root/src/qdoc/catch_generators/tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/catch_generators/tests/main.cpp')
-rw-r--r--src/qdoc/catch_generators/tests/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/qdoc/catch_generators/tests/main.cpp b/src/qdoc/catch_generators/tests/main.cpp
new file mode 100644
index 000000000..48ce73f12
--- /dev/null
+++ b/src/qdoc/catch_generators/tests/main.cpp
@@ -0,0 +1,13 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#define CATCH_CONFIG_RUNNER
+#include <catch/catch.hpp>
+
+// A custom main was provided to avoid linking errors when using minGW
+// that were appearing in CI.
+// See https://github.com/catchorg/Catch2/issues/1287
+int main(int argc, char *argv[])
+{
+ return Catch::Session().run(argc, argv);
+}