mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Removed stream name from config
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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" };
|
||||
|
Reference in New Issue
Block a user