mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Mark part of std::chrono stringification tests nonportable
This commit is contained in:
parent
4899d891d3
commit
17cdf20968
@ -1003,6 +1003,6 @@ with expansion:
|
|||||||
"{?}" == "1"
|
"{?}" == "1"
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
test cases: 180 | 129 passed | 47 failed | 4 failed as expected
|
test cases: 179 | 128 passed | 47 failed | 4 failed as expected
|
||||||
assertions: 886 | 769 passed | 96 failed | 21 failed as expected
|
assertions: 884 | 767 passed | 96 failed | 21 failed as expected
|
||||||
|
|
||||||
|
@ -4655,28 +4655,6 @@ PASSED:
|
|||||||
with expansion:
|
with expansion:
|
||||||
1 [30/1]s != 1 fs
|
1 [30/1]s != 1 fs
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Stringifying std::chrono::time_point<Clock>
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
ToStringChrono.cpp:<line number>
|
|
||||||
...............................................................................
|
|
||||||
|
|
||||||
ToStringChrono.cpp:<line number>:
|
|
||||||
PASSED:
|
|
||||||
REQUIRE( now != later )
|
|
||||||
with expansion:
|
|
||||||
{iso8601-timestamp}
|
|
||||||
!=
|
|
||||||
{iso8601-timestamp}
|
|
||||||
|
|
||||||
ToStringChrono.cpp:<line number>:
|
|
||||||
PASSED:
|
|
||||||
REQUIRE( now2 != later2 )
|
|
||||||
with expansion:
|
|
||||||
{since-epoch-report}
|
|
||||||
!=
|
|
||||||
{since-epoch-report}
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Stringifying std::chrono::time_point<system_clock>
|
Stringifying std::chrono::time_point<system_clock>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
@ -7512,6 +7490,6 @@ MiscTests.cpp:<line number>:
|
|||||||
PASSED:
|
PASSED:
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
test cases: 180 | 127 passed | 49 failed | 4 failed as expected
|
test cases: 179 | 126 passed | 49 failed | 4 failed as expected
|
||||||
assertions: 885 | 765 passed | 99 failed | 21 failed as expected
|
assertions: 883 | 763 passed | 99 failed | 21 failed as expected
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<testsuitesloose text artifact
|
<testsuitesloose text artifact
|
||||||
>
|
>
|
||||||
<testsuite name="<exe-name>" errors="15" failures="85" tests="886" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
<testsuite name="<exe-name>" errors="15" failures="85" tests="884" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
||||||
<testcase classname="<exe-name>.global" name="# A test name that starts with a #" time="{duration}"/>
|
<testcase classname="<exe-name>.global" name="# A test name that starts with a #" time="{duration}"/>
|
||||||
<testcase classname="<exe-name>.global" name="#1005: Comparing pointer to int and long (NULL can be either on various systems)" time="{duration}"/>
|
<testcase classname="<exe-name>.global" name="#1005: Comparing pointer to int and long (NULL can be either on various systems)" time="{duration}"/>
|
||||||
<testcase classname="<exe-name>.global" name="#748 - captures with unexpected exceptions/outside assertions" time="{duration}">
|
<testcase classname="<exe-name>.global" name="#748 - captures with unexpected exceptions/outside assertions" time="{duration}">
|
||||||
@ -521,7 +521,6 @@ StringRef.tests.cpp:<line number>
|
|||||||
<testcase classname="<exe-name>.global" name="StringRef/to std::string/assigned" time="{duration}"/>
|
<testcase classname="<exe-name>.global" name="StringRef/to std::string/assigned" time="{duration}"/>
|
||||||
<testcase classname="<exe-name>.global" name="Stringifying std::chrono::duration helpers" time="{duration}"/>
|
<testcase classname="<exe-name>.global" name="Stringifying std::chrono::duration helpers" time="{duration}"/>
|
||||||
<testcase classname="<exe-name>.global" name="Stringifying std::chrono::duration with weird ratios" time="{duration}"/>
|
<testcase classname="<exe-name>.global" name="Stringifying std::chrono::duration with weird ratios" time="{duration}"/>
|
||||||
<testcase classname="<exe-name>.global" name="Stringifying std::chrono::time_point<Clock>" time="{duration}"/>
|
|
||||||
<testcase classname="<exe-name>.global" name="Stringifying std::chrono::time_point<system_clock>" time="{duration}"/>
|
<testcase classname="<exe-name>.global" name="Stringifying std::chrono::time_point<system_clock>" time="{duration}"/>
|
||||||
<testcase classname="<exe-name>.global" name="Tabs and newlines show in output" time="{duration}">
|
<testcase classname="<exe-name>.global" name="Tabs and newlines show in output" time="{duration}">
|
||||||
<failure message=""if ($b == 10) {
|
<failure message=""if ($b == 10) {
|
||||||
|
@ -5296,29 +5296,6 @@ Message from section two
|
|||||||
</Expression>
|
</Expression>
|
||||||
<OverallResult success="true"/>
|
<OverallResult success="true"/>
|
||||||
</TestCase>
|
</TestCase>
|
||||||
<TestCase name="Stringifying std::chrono::time_point<Clock>" tags="[chrono][toString]" filename="projects/<exe-name>/ToStringChrono.cpp" >
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringChrono.cpp" >
|
|
||||||
<Original>
|
|
||||||
now != later
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
{iso8601-timestamp}
|
|
||||||
!=
|
|
||||||
{iso8601-timestamp}
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringChrono.cpp" >
|
|
||||||
<Original>
|
|
||||||
now2 != later2
|
|
||||||
</Original>
|
|
||||||
<Expanded>
|
|
||||||
{since-epoch-report}
|
|
||||||
!=
|
|
||||||
{since-epoch-report}
|
|
||||||
</Expanded>
|
|
||||||
</Expression>
|
|
||||||
<OverallResult success="true"/>
|
|
||||||
</TestCase>
|
|
||||||
<TestCase name="Stringifying std::chrono::time_point<system_clock>" tags="[chrono][toString]" filename="projects/<exe-name>/ToStringChrono.cpp" >
|
<TestCase name="Stringifying std::chrono::time_point<system_clock>" tags="[chrono][toString]" filename="projects/<exe-name>/ToStringChrono.cpp" >
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringChrono.cpp" >
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringChrono.cpp" >
|
||||||
<Original>
|
<Original>
|
||||||
@ -8291,7 +8268,7 @@ loose text artifact
|
|||||||
</Section>
|
</Section>
|
||||||
<OverallResult success="true"/>
|
<OverallResult success="true"/>
|
||||||
</TestCase>
|
</TestCase>
|
||||||
<OverallResults successes="765" failures="100" expectedFailures="21"/>
|
<OverallResults successes="763" failures="100" expectedFailures="21"/>
|
||||||
</Group>
|
</Group>
|
||||||
<OverallResults successes="765" failures="99" expectedFailures="21"/>
|
<OverallResults successes="763" failures="99" expectedFailures="21"/>
|
||||||
</Catch>
|
</Catch>
|
||||||
|
@ -30,7 +30,7 @@ TEST_CASE("Stringifying std::chrono::time_point<system_clock>", "[toString][chro
|
|||||||
REQUIRE(now != later);
|
REQUIRE(now != later);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Stringifying std::chrono::time_point<Clock>", "[toString][chrono]") {
|
TEST_CASE("Stringifying std::chrono::time_point<Clock>", "[toString][chrono][!nonportable]") {
|
||||||
auto now = std::chrono::high_resolution_clock::now();
|
auto now = std::chrono::high_resolution_clock::now();
|
||||||
auto later = now + std::chrono::minutes(2);
|
auto later = now + std::chrono::minutes(2);
|
||||||
REQUIRE(now != later);
|
REQUIRE(now != later);
|
||||||
|
Loading…
Reference in New Issue
Block a user