Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-05-07 16:24:05 +0200
committerMartin Hořeňovský2020-05-09 18:00:49 +0200
commitdb32550898ac0b7bdb81228972f6ba58b88ce18d (patch)
treee00421664132373cc9398aebbaf01c8a9f8b8015 /examples
parente78b4f6be78912bdc812dba0fbf2166841ffb7be (diff)
downloadcatch3-db32550898ac0b7bdb81228972f6ba58b88ce18d.tar.gz
Remove catch_default_main.hpp
There are two reasons for this: 1) It is highly unlikely that someone has use for this header, which has no customization points and only provides simplest possible main, and cannot link the static library which also provides a default main implementation. 2) It being a header was causing extra complications with the convenience headers, and our checking script. This would either require special handling in the checking script, or would break user's of the main convenience header. All in all, it is simpler and better in the long term to remove it, than to fix its problems.
Diffstat (limited to 'examples')
-rw-r--r--examples/010-TestCase.cpp4
-rw-r--r--examples/020-TestCase-1.cpp6
-rw-r--r--examples/231-Cfg-OutputStreams.cpp3
3 files changed, 0 insertions, 13 deletions
diff --git a/examples/010-TestCase.cpp b/examples/010-TestCase.cpp
index d9939958..70a0b4c1 100644
--- a/examples/010-TestCase.cpp
+++ b/examples/010-TestCase.cpp
@@ -1,8 +1,4 @@
// 010-TestCase.cpp
-
-// Let Catch provide main():
-#include <catch2/internal/catch_default_main.hpp>
-
// And write tests in the same file:
#include <catch2/catch_test_macros.hpp>
diff --git a/examples/020-TestCase-1.cpp b/examples/020-TestCase-1.cpp
index 5d17016a..5d7d8de6 100644
--- a/examples/020-TestCase-1.cpp
+++ b/examples/020-TestCase-1.cpp
@@ -1,11 +1,5 @@
// 020-TestCase-1.cpp
-// In a Catch project with multiple files, dedicate one file to compile the
-// source code of Catch itself and reuse the resulting object file for linking.
-
-// Let Catch provide main():
-#include <catch2/internal/catch_default_main.hpp>
-
#include <catch2/catch_test_macros.hpp>
TEST_CASE( "1: All test cases reside in other .cpp files (empty)", "[multi-file:1]" ) {
diff --git a/examples/231-Cfg-OutputStreams.cpp b/examples/231-Cfg-OutputStreams.cpp
index d0c1a632..b77c1273 100644
--- a/examples/231-Cfg-OutputStreams.cpp
+++ b/examples/231-Cfg-OutputStreams.cpp
@@ -5,9 +5,6 @@
// semantic, because it buffers the output. For most uses however,
// there is no important difference between having `std::cerr` buffered
// or unbuffered.
-
-#include <catch2/internal/catch_default_main.hpp>
-
#include <catch2/catch_test_macros.hpp>
#include <sstream>