Changed the way noexcept support is handled to (hopefully) fix #275 and #273

This commit is contained in:
Phil Nash
2014-04-23 18:19:19 +01:00
parent f1928b7f24
commit 1a6f2a0a80
8 changed files with 46 additions and 18 deletions

View File

@@ -772,5 +772,5 @@ with expansion:
"first" == "second"
===============================================================================
126 test cases - 39 failed (628 assertions - 92 failed)
127 test cases - 39 failed (629 assertions - 92 failed)

View File

@@ -6285,6 +6285,18 @@ PASSED:
with expansion:
__null == 0
-------------------------------------------------------------------------------
null_ptr
-------------------------------------------------------------------------------
TrickyTests.cpp:<line number>
...............................................................................
TrickyTests.cpp:<line number>:
PASSED:
REQUIRE( ptr.get() == nullptr )
with expansion:
__null == nullptr
-------------------------------------------------------------------------------
X/level/0/a
-------------------------------------------------------------------------------
@@ -6668,5 +6680,5 @@ with expansion:
true
===============================================================================
126 test cases - 54 failed (647 assertions - 111 failed)
127 test cases - 54 failed (648 assertions - 111 failed)

View File

@@ -1,5 +1,5 @@
<testsuites>
<testsuite name="~_" errors="12" failures="99" tests="647" hostname="tbd" time="{duration}" timestamp="tbd">
<testsuite name="~_" errors="12" failures="99" tests="648" hostname="tbd" time="{duration}" timestamp="tbd">
<testcase classname="global" name="Some simple comparisons between doubles" time="{duration}"/>
<testcase classname="global" name="Approximate comparisons with different epsilons" time="{duration}"/>
<testcase classname="global" name="Approximate comparisons with floats" time="{duration}"/>
@@ -531,6 +531,7 @@ TrickyTests.cpp:<line number>
<testcase classname="global" name="Comparing function pointers" time="{duration}"/>
<testcase classname="global" name="Comparing member function pointers" time="{duration}"/>
<testcase classname="global" name="pointer to class" time="{duration}"/>
<testcase classname="global" name="null_ptr" time="{duration}"/>
<testcase classname="global" name="X/level/0/a" time="{duration}"/>
<testcase classname="global" name="X/level/0/b" time="{duration}"/>
<testcase classname="global" name="X/level/1/a" time="{duration}"/>

View File

@@ -6548,6 +6548,17 @@ there&quot;
</Expression>
<OverallResult success="true"/>
</TestCase>
<TestCase name="null_ptr">
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
<Original>
ptr.get() == nullptr
</Original>
<Expanded>
__null == nullptr
</Expanded>
</Expression>
<OverallResult success="true"/>
</TestCase>
<TestCase name="X/level/0/a">
<OverallResult success="true"/>
</TestCase>
@@ -6881,7 +6892,7 @@ there&quot;
</Section>
<OverallResult success="true"/>
</TestCase>
<OverallResults successes="536" failures="111"/>
<OverallResults successes="537" failures="111"/>
</Group>
<OverallResults successes="536" failures="111"/>
<OverallResults successes="537" failures="111"/>
</Catch>