2019-06-22 20:26:03 +02:00
|
|
|
Filters: ~[!nonportable]~[!benchmark]~[approvals] *
|
2013-09-27 20:01:14 +02:00
|
|
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-01-09 15:33:03 +01:00
|
|
|
<exe-name> is a <version> host application.
|
2013-09-27 20:01:14 +02:00
|
|
|
Run with -? for options
|
|
|
|
|
2018-10-13 15:30:15 +02:00
|
|
|
Randomness seeded to: 1
|
|
|
|
|
2014-09-03 20:22:47 +02:00
|
|
|
-------------------------------------------------------------------------------
|
2016-11-29 12:32:16 +01:00
|
|
|
# A test name that starts with a #
|
2014-09-03 20:22:47 +02:00
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Misc.tests.cpp:<line number>
|
2014-09-03 20:22:47 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Misc.tests.cpp:<line number>: PASSED:
|
2016-11-29 12:32:16 +01:00
|
|
|
with message:
|
|
|
|
yay
|
2013-09-27 20:01:14 +02:00
|
|
|
|
2017-08-30 11:40:29 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1005: Comparing pointer to int and long (NULL can be either on various
|
|
|
|
systems)
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Decomposition.tests.cpp:<line number>
|
2017-08-30 11:40:29 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Decomposition.tests.cpp:<line number>: PASSED:
|
2017-08-30 11:40:29 +02:00
|
|
|
REQUIRE( fptr == 0 )
|
|
|
|
with expansion:
|
|
|
|
0 == 0
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Decomposition.tests.cpp:<line number>: PASSED:
|
2017-08-30 11:40:29 +02:00
|
|
|
REQUIRE( fptr == 0l )
|
|
|
|
with expansion:
|
|
|
|
0 == 0
|
|
|
|
|
2017-11-13 10:07:06 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1027
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Compilation.tests.cpp:<line number>
|
2017-11-13 10:07:06 +01:00
|
|
|
...............................................................................
|
|
|
|
|
2019-08-04 13:50:25 +02:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
|
|
|
REQUIRE( y.v == 0 )
|
|
|
|
with expansion:
|
|
|
|
0 == 0
|
|
|
|
|
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
|
|
|
REQUIRE( 0 == y.v )
|
|
|
|
with expansion:
|
|
|
|
0 == 0
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1027: Bitfields can be captured
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Compilation.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-11-13 10:07:06 +01:00
|
|
|
REQUIRE( y.v == 0 )
|
|
|
|
with expansion:
|
|
|
|
0 == 0
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-11-13 10:07:06 +01:00
|
|
|
REQUIRE( 0 == y.v )
|
|
|
|
with expansion:
|
|
|
|
0 == 0
|
|
|
|
|
2018-01-12 15:43:56 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1147
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Compilation.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-01-12 15:43:56 +01:00
|
|
|
REQUIRE( t1 == t2 )
|
|
|
|
with expansion:
|
|
|
|
{?} == {?}
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-01-12 15:43:56 +01:00
|
|
|
REQUIRE( t1 != t2 )
|
|
|
|
with expansion:
|
|
|
|
{?} != {?}
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-01-12 15:43:56 +01:00
|
|
|
REQUIRE( t1 < t2 )
|
|
|
|
with expansion:
|
|
|
|
{?} < {?}
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-01-12 15:43:56 +01:00
|
|
|
REQUIRE( t1 > t2 )
|
|
|
|
with expansion:
|
|
|
|
{?} > {?}
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-01-12 15:43:56 +01:00
|
|
|
REQUIRE( t1 <= t2 )
|
|
|
|
with expansion:
|
|
|
|
{?} <= {?}
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-01-12 15:43:56 +01:00
|
|
|
REQUIRE( t1 >= t2 )
|
|
|
|
with expansion:
|
|
|
|
{?} >= {?}
|
|
|
|
|
2018-02-08 23:18:32 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1175 - Hidden Test
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Misc.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Misc.tests.cpp:<line number>: PASSED:
|
2018-02-08 23:18:32 +01:00
|
|
|
|
2018-04-06 11:39:40 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1238
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Compilation.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-04-06 11:39:40 +02:00
|
|
|
REQUIRE( std::memcmp(uarr, "123", sizeof(uarr)) == 0 )
|
|
|
|
with expansion:
|
|
|
|
0 == 0
|
|
|
|
with messages:
|
|
|
|
uarr := "123"
|
|
|
|
sarr := "456"
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-04-06 11:39:40 +02:00
|
|
|
REQUIRE( std::memcmp(sarr, "456", sizeof(sarr)) == 0 )
|
|
|
|
with expansion:
|
|
|
|
0 == 0
|
|
|
|
with messages:
|
|
|
|
uarr := "123"
|
|
|
|
sarr := "456"
|
|
|
|
|
2018-04-10 04:41:44 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1245
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Compilation.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-04-10 04:41:44 +02:00
|
|
|
|
2018-10-13 14:43:58 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1403
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Compilation.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2018-10-13 14:43:58 +02:00
|
|
|
REQUIRE( h1 == h2 )
|
|
|
|
with expansion:
|
|
|
|
[1403 helper] == [1403 helper]
|
|
|
|
|
2019-04-10 20:15:42 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1455 - INFO and WARN can start with a linebreak
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Message.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
|
|
|
Message.tests.cpp:<line number>: warning:
|
|
|
|
|
|
|
|
This info message starts with a linebreak
|
|
|
|
|
|
|
|
This warning message starts with a linebreak
|
|
|
|
|
|
|
|
|
|
|
|
No assertions in test case '#1455 - INFO and WARN can start with a linebreak'
|
|
|
|
|
2019-03-02 21:22:41 +01:00
|
|
|
This would not be caught previously
|
2019-03-06 21:53:17 +01:00
|
|
|
Nor would this
|
2019-03-02 21:22:41 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1514: stderr/stdout is not captured in tests aborted by an exception
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Tricky.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
|
|
|
Tricky.tests.cpp:<line number>: FAILED:
|
|
|
|
explicitly with message:
|
|
|
|
1514
|
|
|
|
|
2019-02-23 21:06:16 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#1548
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Compilation.tests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
|
|
|
REQUIRE( std::is_same<TypeList<int>, TypeList<int>>::value )
|
|
|
|
with expansion:
|
|
|
|
true
|
|
|
|
|
2017-04-09 21:40:01 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#748 - captures with unexpected exceptions
|
|
|
|
outside assertions
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Exception.tests.cpp:<line number>
|
2017-04-09 21:40:01 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2017-11-13 17:03:27 +01:00
|
|
|
Exception.tests.cpp:<line number>: FAILED:
|
2017-04-09 21:40:01 +02:00
|
|
|
due to unexpected exception with messages:
|
|
|
|
answer := 42
|
|
|
|
expected exception
|
|
|
|
|
2017-02-10 12:53:29 +01:00
|
|
|
-------------------------------------------------------------------------------
|
2017-04-07 10:33:19 +02:00
|
|
|
#748 - captures with unexpected exceptions
|
|
|
|
inside REQUIRE_NOTHROW
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Exception.tests.cpp:<line number>
|
2017-04-07 10:33:19 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2017-11-13 17:03:27 +01:00
|
|
|
Exception.tests.cpp:<line number>: FAILED:
|
2017-04-07 10:33:19 +02:00
|
|
|
REQUIRE_NOTHROW( thisThrows() )
|
|
|
|
due to unexpected exception with messages:
|
|
|
|
answer := 42
|
|
|
|
expected exception
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#748 - captures with unexpected exceptions
|
|
|
|
inside REQUIRE_THROWS
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Exception.tests.cpp:<line number>
|
2017-04-07 10:33:19 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Exception.tests.cpp:<line number>: PASSED:
|
2017-04-07 10:33:19 +02:00
|
|
|
REQUIRE_THROWS( thisThrows() )
|
|
|
|
with message:
|
|
|
|
answer := 42
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#809
|
2017-02-10 12:53:29 +01:00
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Compilation.tests.cpp:<line number>
|
2017-02-10 12:53:29 +01:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-04-07 10:33:19 +02:00
|
|
|
REQUIRE( 42 == f )
|
|
|
|
with expansion:
|
|
|
|
42 == {?}
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#833
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Compilation.tests.cpp:<line number>
|
2017-04-07 10:33:19 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-04-07 10:33:19 +02:00
|
|
|
REQUIRE( a == t )
|
|
|
|
with expansion:
|
|
|
|
3 == 3
|
2017-02-10 12:53:29 +01:00
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-04-07 10:33:19 +02:00
|
|
|
CHECK( a == t )
|
|
|
|
with expansion:
|
|
|
|
3 == 3
|
2017-02-10 12:53:29 +01:00
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-04-07 10:33:19 +02:00
|
|
|
REQUIRE_THROWS( throws_int(true) )
|
2017-02-10 12:53:29 +01:00
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-07-20 00:29:19 +02:00
|
|
|
CHECK_THROWS_AS( throws_int(true), int )
|
2017-02-10 12:53:29 +01:00
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-04-07 10:33:19 +02:00
|
|
|
REQUIRE_NOTHROW( throws_int(false) )
|
2017-02-07 13:32:48 +01:00
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-04-07 10:33:19 +02:00
|
|
|
REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") )
|
2017-02-07 13:32:48 +01:00
|
|
|
with expansion:
|
2017-04-07 10:33:19 +02:00
|
|
|
"aaa" ends with: "aaa"
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-04-07 10:33:19 +02:00
|
|
|
REQUIRE( templated_tests<int>(3) )
|
|
|
|
with expansion:
|
|
|
|
true
|
2017-02-07 13:32:48 +01:00
|
|
|
|
2017-03-06 22:07:33 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#835 -- errno should not be touched by Catch
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Misc.tests.cpp:<line number>
|
2017-03-06 22:07:33 +01:00
|
|
|
...............................................................................
|
|
|
|
|
2017-11-13 17:03:27 +01:00
|
|
|
Misc.tests.cpp:<line number>: FAILED:
|
2017-03-06 22:07:33 +01:00
|
|
|
CHECK( f() == 0 )
|
|
|
|
with expansion:
|
|
|
|
1 == 0
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Misc.tests.cpp:<line number>: PASSED:
|
2017-06-06 15:07:57 +02:00
|
|
|
REQUIRE( errno == 1 )
|
2017-03-06 22:07:33 +01:00
|
|
|
with expansion:
|
|
|
|
1 == 1
|
|
|
|
|
2017-04-25 15:57:58 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#872
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Compilation.tests.cpp:<line number>
|
2017-04-25 15:57:58 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Compilation.tests.cpp:<line number>: PASSED:
|
2017-04-25 15:57:58 +02:00
|
|
|
REQUIRE( x == 4 )
|
|
|
|
with expansion:
|
|
|
|
{?} == 4
|
|
|
|
with message:
|
|
|
|
dummy := 0
|
|
|
|
|
2017-08-10 21:38:07 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#961 -- Dynamically created sections should all be reported
|
|
|
|
Looped section 0
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Misc.tests.cpp:<line number>
|
2017-08-10 21:38:07 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Misc.tests.cpp:<line number>: PASSED:
|
2017-08-10 21:38:07 +02:00
|
|
|
with message:
|
|
|
|
Everything is OK
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#961 -- Dynamically created sections should all be reported
|
|
|
|
Looped section 1
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Misc.tests.cpp:<line number>
|
2017-08-10 21:38:07 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Misc.tests.cpp:<line number>: PASSED:
|
2017-08-10 21:38:07 +02:00
|
|
|
with message:
|
|
|
|
Everything is OK
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#961 -- Dynamically created sections should all be reported
|
|
|
|
Looped section 2
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Misc.tests.cpp:<line number>
|
2017-08-10 21:38:07 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Misc.tests.cpp:<line number>: PASSED:
|
2017-08-10 21:38:07 +02:00
|
|
|
with message:
|
|
|
|
Everything is OK
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#961 -- Dynamically created sections should all be reported
|
|
|
|
Looped section 3
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Misc.tests.cpp:<line number>
|
2017-08-10 21:38:07 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Misc.tests.cpp:<line number>: PASSED:
|
2017-08-10 21:38:07 +02:00
|
|
|
with message:
|
|
|
|
Everything is OK
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#961 -- Dynamically created sections should all be reported
|
|
|
|
Looped section 4
|
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Misc.tests.cpp:<line number>
|
2017-08-10 21:38:07 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2018-11-04 20:31:49 +01:00
|
|
|
Misc.tests.cpp:<line number>: PASSED:
|
2017-08-10 21:38:07 +02:00
|
|
|
with message:
|
|
|
|
Everything is OK
|
|
|
|
|
2013-09-27 20:01:14 +02:00
|
|
|
-------------------------------------------------------------------------------
|
2016-11-29 12:32:16 +01:00
|
|
|
'Not' checks that should fail
|
2013-09-27 20:01:14 +02:00
|
|
|
-------------------------------------------------------------------------------
|
2017-11-13 17:03:27 +01:00
|
|
|
Condition.tests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2017-11-13 17:03:27 +01:00
|
|
|
Condition.tests.cpp:<line number>: FAILED:
|
2016-11-29 12:32:16 +01:00
|
|
|
CHECK( false != false )
|
2013-09-27 20:01:14 +02:00
|
|
|
|
2017-11-13 17:03:27 +01:00
|
|
|
Condition.tests.cpp:<line number>: FAILED:
|
2016-11-29 12:32:16 +01:00
|
|
|
CHECK( true != true )
|
2014-07-03 09:09:57 +02:00
|
|
|
|
|
|
|
===============================================================================
|
2019-08-04 13:50:25 +02:00
|
|
|
test cases: 19 | 14 passed | 3 failed | 2 failed as expected
|
|
|
|
assertions: 42 | 35 passed | 4 failed | 3 failed as expected
|
2013-09-27 20:01:14 +02:00
|
|
|
|