mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-28 07:29:25 +00:00
Removed stream name from config
This commit is contained in:
parent
3f184e22e8
commit
40e529740c
5 changed files with 323 additions and 419 deletions
|
@ -256,20 +256,12 @@ TEST_CASE( "selftest/parser/2", "ConfigData" ) {
|
|||
}
|
||||
}
|
||||
|
||||
SECTION( "streams", "" ) {
|
||||
SECTION( "output filename", "" ) {
|
||||
SECTION( "-o filename", "" ) {
|
||||
const char* argv[] = { "test", "-o", "filename.ext" };
|
||||
CHECK_NOTHROW( parseIntoConfig( argv, config ) );
|
||||
|
||||
REQUIRE( config.outputFilename == "filename.ext" );
|
||||
REQUIRE( config.stream.empty() );
|
||||
}
|
||||
SECTION( "-o %stdout", "" ) {
|
||||
const char* argv[] = { "test", "-o", "%stdout" };
|
||||
CHECK_NOTHROW( parseIntoConfig( argv, config ) );
|
||||
|
||||
REQUIRE( config.stream == "stdout" );
|
||||
REQUIRE( config.outputFilename.empty() );
|
||||
}
|
||||
SECTION( "--out", "" ) {
|
||||
const char* argv[] = { "test", "--out", "filename.ext" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue