Added compilation tests to approvals

This commit is contained in:
Phil Nash 2017-02-10 11:53:29 +00:00
parent c72ba93f92
commit d6b8ac5a4e
5 changed files with 89 additions and 9 deletions

View File

@ -829,6 +829,6 @@ with expansion:
"first" == "second" "first" == "second"
=============================================================================== ===============================================================================
test cases: 159 | 115 passed | 42 failed | 2 failed as expected test cases: 160 | 116 passed | 42 failed | 2 failed as expected
assertions: 928 | 832 passed | 78 failed | 18 failed as expected assertions: 932 | 836 passed | 78 failed | 18 failed as expected

View File

@ -14,6 +14,28 @@ PASSED:
with message: with message:
yay yay
-------------------------------------------------------------------------------
#542
-------------------------------------------------------------------------------
CompilationTests.cpp:<line number>
...............................................................................
CompilationTests.cpp:<line number>:
PASSED:
CHECK_THROWS_AS( throws_int(true), int )
CompilationTests.cpp:<line number>:
PASSED:
CHECK_THROWS_AS( throws_int(true), int& )
CompilationTests.cpp:<line number>:
PASSED:
CHECK_THROWS_AS( throws_int(true), const int )
CompilationTests.cpp:<line number>:
PASSED:
CHECK_THROWS_AS( throws_int(true), const int& )
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
#809 #809
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
@ -9142,6 +9164,6 @@ MiscTests.cpp:<line number>:
PASSED: PASSED:
=============================================================================== ===============================================================================
test cases: 159 | 114 passed | 43 failed | 2 failed as expected test cases: 160 | 115 passed | 43 failed | 2 failed as expected
assertions: 930 | 832 passed | 80 failed | 18 failed as expected assertions: 934 | 836 passed | 80 failed | 18 failed as expected

View File

@ -14,6 +14,28 @@ PASSED:
with message: with message:
yay yay
-------------------------------------------------------------------------------
#542
-------------------------------------------------------------------------------
CompilationTests.cpp:<line number>
...............................................................................
CompilationTests.cpp:<line number>:
PASSED:
CHECK_THROWS_AS( throws_int(true), int )
CompilationTests.cpp:<line number>:
PASSED:
CHECK_THROWS_AS( throws_int(true), int& )
CompilationTests.cpp:<line number>:
PASSED:
CHECK_THROWS_AS( throws_int(true), const int )
CompilationTests.cpp:<line number>:
PASSED:
CHECK_THROWS_AS( throws_int(true), const int& )
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
#809 #809
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
@ -47,6 +69,6 @@ ConditionTests.cpp:<line number>: FAILED:
CHECK_FALSE( true ) CHECK_FALSE( true )
=============================================================================== ===============================================================================
test cases: 3 | 2 passed | 1 failed test cases: 4 | 3 passed | 1 failed
assertions: 6 | 2 passed | 4 failed assertions: 10 | 6 passed | 4 failed

View File

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<testsuites> <testsuites>
<testsuite name="<exe-name>" errors="13" failures="68" tests="931" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}"> <testsuite name="<exe-name>" errors="13" failures="68" tests="935" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
<testcase classname="global" name="# A test name that starts with a #" time="{duration}"/> <testcase classname="global" name="# A test name that starts with a #" time="{duration}"/>
<testcase classname="global" name="#542" time="{duration}"/>
<testcase classname="global" name="#809" time="{duration}"/> <testcase classname="global" name="#809" time="{duration}"/>
<testcase classname="global" name="'Not' checks that should fail" time="{duration}"> <testcase classname="global" name="'Not' checks that should fail" time="{duration}">
<failure message="false != false" type="CHECK"> <failure message="false != false" type="CHECK">

View File

@ -4,6 +4,41 @@
<TestCase name="# A test name that starts with a #"> <TestCase name="# A test name that starts with a #">
<OverallResult success="true"/> <OverallResult success="true"/>
</TestCase> </TestCase>
<TestCase name="#542">
<Expression success="true" type="CHECK_THROWS_AS" filename="projects/<exe-name>/CompilationTests.cpp" >
<Original>
throws_int(true), int
</Original>
<Expanded>
throws_int(true), int
</Expanded>
</Expression>
<Expression success="true" type="CHECK_THROWS_AS" filename="projects/<exe-name>/CompilationTests.cpp" >
<Original>
throws_int(true), int&amp;
</Original>
<Expanded>
throws_int(true), int&amp;
</Expanded>
</Expression>
<Expression success="true" type="CHECK_THROWS_AS" filename="projects/<exe-name>/CompilationTests.cpp" >
<Original>
throws_int(true), const int
</Original>
<Expanded>
throws_int(true), const int
</Expanded>
</Expression>
<Expression success="true" type="CHECK_THROWS_AS" filename="projects/<exe-name>/CompilationTests.cpp" >
<Original>
throws_int(true), const int&amp;
</Original>
<Expanded>
throws_int(true), const int&amp;
</Expanded>
</Expression>
<OverallResult success="true"/>
</TestCase>
<TestCase name="#809"> <TestCase name="#809">
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/CompilationTests.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/CompilationTests.cpp" >
<Original> <Original>
@ -9655,7 +9690,7 @@ there"
</Section> </Section>
<OverallResult success="true"/> <OverallResult success="true"/>
</TestCase> </TestCase>
<OverallResults successes="832" failures="81" expectedFailures="18"/> <OverallResults successes="836" failures="81" expectedFailures="18"/>
</Group> </Group>
<OverallResults successes="832" failures="80" expectedFailures="18"/> <OverallResults successes="836" failures="80" expectedFailures="18"/>
</Catch> </Catch>