diff options
author | Viktor Kirilov <vik.kirilov@gmail.com> | 2020-12-25 17:49:31 +0300 |
---|---|---|
committer | Viktor Kirilov <vik.kirilov@gmail.com> | 2020-12-25 17:49:31 +0300 |
commit | e60667c121ed973ba84a1d7ead0891297d2bbf8e (patch) | |
tree | 720707fc2e375ed50c145c02424729c134a8fb8b /examples | |
parent | a43ac353037b2a747d903f90c609182bad748c1a (diff) |
fixing MSVC build
Diffstat (limited to 'examples')
4 files changed, 5 insertions, 7 deletions
diff --git a/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/foo.h b/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/foo.h index 63afcf94..a29c6304 100644 --- a/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/foo.h +++ b/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/foo.h @@ -37,7 +37,5 @@ TEST_CASE(TEST_LABEL "bartest"){ TEST_CASE(TEST_LABEL "commontest"){ INFO("Running " TEST_LABEL "commontest"); MESSAGE(""); - auto x = bar(); - CHECK(std::is_same<decltype(x), int>::value); } #endif // DOCTEST_LIBRARY_INCLUDED diff --git a/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations.txt b/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations.txt index 09df2ebc..34099eda 100644 --- a/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations.txt +++ b/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations.txt @@ -41,5 +41,5 @@ test_runner.cpp(0): MESSAGE: hello from <test_runner.cpp> =============================================================================== [doctest] test cases: 6 | 6 passed | 0 failed | 0 skipped -[doctest] assertions: 4 | 4 passed | 0 failed | +[doctest] assertions: 2 | 2 passed | 0 failed | [doctest] Status: SUCCESS! diff --git a/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations_junit.txt b/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations_junit.txt index a52da761..55f969a2 100644 --- a/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations_junit.txt +++ b/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations_junit.txt @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <testsuites> - <testsuite name="same_tests_multiple_configurations" errors="0" failures="0" tests="4"> + <testsuite name="same_tests_multiple_configurations" errors="0" failures="0" tests="2"> <testcase classname="foo.h" name="[return42] bartest" status="run"/> <testcase classname="foo.h" name="[default] bartest" status="run"/> <testcase classname="foo.h" name="[default] commontest" status="run"/> diff --git a/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations_xml.txt b/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations_xml.txt index 2818bb49..3e4e90d1 100644 --- a/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations_xml.txt +++ b/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/test_output/same_tests_multiple_configurations_xml.txt @@ -27,7 +27,7 @@ Running [default] commontest </Info> </Message> - <OverallResultsAsserts successes="1" failures="0"/> + <OverallResultsAsserts successes="0" failures="0"/> </TestCase> <TestCase name="[return42] commontest" filename="foo.h" line="0"> <Message type="WARNING" filename="foo.h" line="0"> @@ -36,7 +36,7 @@ Running [return42] commontest </Info> </Message> - <OverallResultsAsserts successes="1" failures="0"/> + <OverallResultsAsserts successes="0" failures="0"/> </TestCase> <TestCase name="main" filename="main.cpp" line="0"> <Message type="WARNING" filename="main.cpp" line="0"> @@ -55,6 +55,6 @@ <OverallResultsAsserts successes="0" failures="0"/> </TestCase> </TestSuite> - <OverallResultsAsserts successes="4" failures="0"/> + <OverallResultsAsserts successes="2" failures="0"/> <OverallResultsTestCases successes="6" failures="0" skipped="0"/> </doctest> |