diff options
| author | Phil Nash | 2012-06-02 23:26:32 +0100 |
|---|---|---|
| committer | Phil Nash | 2012-06-02 23:26:32 +0100 |
| commit | 8d02b9306dd0abbdc44803d03537f266d83bb548 (patch) | |
| tree | d7ce0ea571bc9dadb10c287e7be990f279c3c72a /projects/SelfTest/TestMain.cpp | |
| parent | 0f9c551d4d29e82bb47e1c8ad279b0aad44eeb7a (diff) | |
| download | catch3-8d02b9306dd0abbdc44803d03537f266d83bb548.tar.gz | |
Changed --cutoff to --abort
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
| -rw-r--r-- | projects/SelfTest/TestMain.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp index 1de9386e..1b4b507c 100644 --- a/projects/SelfTest/TestMain.cpp +++ b/projects/SelfTest/TestMain.cpp @@ -202,23 +202,23 @@ TEST_CASE( "selftest/parser", "" ) { } } - SECTION( "cutoff", "" ) { - SECTION( "-c", "" ) { - const char* argv[] = { "test", "-c" }; + SECTION( "abort", "" ) { + SECTION( "-a", "" ) { + const char* argv[] = { "test", "-a" }; Catch::Config config; CHECK( parseIntoConfig( argv, config ) ); REQUIRE( config.getCutoff() == 1 ); } - SECTION( "-c/2", "" ) { - const char* argv[] = { "test", "-c", "2" }; + SECTION( "-a/2", "" ) { + const char* argv[] = { "test", "-a", "2" }; Catch::Config config; CHECK( parseIntoConfig( argv, config ) ); REQUIRE( config.getCutoff() == 2 ); } - SECTION( "-c/error", "cutoff only takes one argument" ) { - const char* argv[] = { "test", "-c", "1", "2" }; + SECTION( "-a/error", "cutoff only takes one argument" ) { + const char* argv[] = { "test", "-a", "1", "2" }; Catch::Config config; CHECK( parseIntoConfig( argv, config ) == false ); @@ -226,8 +226,8 @@ TEST_CASE( "selftest/parser", "" ) { } } SECTION( "combinations", "" ) { - SECTION( "-c -b", "" ) { - const char* argv[] = { "test", "-c", "-b" }; + SECTION( "-a -b", "" ) { + const char* argv[] = { "test", "-a", "-b" }; Catch::Config config; CHECK( parseIntoConfig( argv, config ) ); |