diff options
Diffstat (limited to 'src/qdoc/qdoc/tests/qdoc/main.cpp')
-rw-r--r-- | src/qdoc/qdoc/tests/qdoc/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qdoc/qdoc/tests/qdoc/main.cpp b/src/qdoc/qdoc/tests/qdoc/main.cpp new file mode 100644 index 000000000..5f85451f6 --- /dev/null +++ b/src/qdoc/qdoc/tests/qdoc/main.cpp @@ -0,0 +1,12 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#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); +} |