mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Changed stdout/ stderr messages to be less misleading
This commit is contained in:
parent
eb760f689b
commit
fb90d38310
@ -569,8 +569,8 @@ with expansion:
|
|||||||
with message:
|
with message:
|
||||||
Testing if fib[7] (21) is even
|
Testing if fib[7] (21) is even
|
||||||
|
|
||||||
Some information
|
A string sent directly to stdout
|
||||||
An error
|
A string sent directly to stderr
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
checkedIf, failing
|
checkedIf, failing
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
@ -3014,8 +3014,8 @@ with expansion:
|
|||||||
with message:
|
with message:
|
||||||
Testing if fib[7] (21) is even
|
Testing if fib[7] (21) is even
|
||||||
|
|
||||||
Some information
|
A string sent directly to stdout
|
||||||
An error
|
A string sent directly to stderr
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Sends stuff to stdout and stderr
|
Sends stuff to stdout and stderr
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
@ -351,10 +351,10 @@ MiscTests.cpp:<line number>
|
|||||||
</testcase>
|
</testcase>
|
||||||
<testcase classname="global" name="Sends stuff to stdout and stderr" time="{duration}">
|
<testcase classname="global" name="Sends stuff to stdout and stderr" time="{duration}">
|
||||||
<system-out>
|
<system-out>
|
||||||
Some information
|
A string sent directly to stdout
|
||||||
</system-out>
|
</system-out>
|
||||||
<system-err>
|
<system-err>
|
||||||
An error
|
A string sent directly to stderr
|
||||||
</system-err>
|
</system-err>
|
||||||
</testcase>
|
</testcase>
|
||||||
<testcase classname="global" name="null strings" time="{duration}"/>
|
<testcase classname="global" name="null strings" time="{duration}"/>
|
||||||
@ -550,12 +550,12 @@ TrickyTests.cpp:<line number>
|
|||||||
<system-out>
|
<system-out>
|
||||||
Message from section one
|
Message from section one
|
||||||
Message from section two
|
Message from section two
|
||||||
Some information
|
A string sent directly to stdout
|
||||||
hello
|
hello
|
||||||
hello
|
hello
|
||||||
</system-out>
|
</system-out>
|
||||||
<system-err>
|
<system-err>
|
||||||
An error
|
A string sent directly to stderr
|
||||||
</system-err>
|
</system-err>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
@ -113,9 +113,9 @@ TEST_CASE( "looped tests", "[.][failing]" )
|
|||||||
|
|
||||||
TEST_CASE( "Sends stuff to stdout and stderr", "" )
|
TEST_CASE( "Sends stuff to stdout and stderr", "" )
|
||||||
{
|
{
|
||||||
std::cout << "Some information" << std::endl;
|
std::cout << "A string sent directly to stdout" << std::endl;
|
||||||
|
|
||||||
std::cerr << "An error" << std::endl;
|
std::cerr << "A string sent directly to stderr" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline const char* makeString( bool makeNull )
|
inline const char* makeString( bool makeNull )
|
||||||
|
Loading…
Reference in New Issue
Block a user