Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Added clog test

Commit
7c5a21fb7d3f389cfd63fd2e0b55dba987cd3955
Author
Phil Nash ·
Parents
533cdc6bc137

Files · Download .tar.gz

Changes

 projects/SelfTest/Baselines/console.std.approved.txt | 1 +
 projects/SelfTest/Baselines/console.sw.approved.txt  | 1 +
 projects/SelfTest/Baselines/junit.sw.approved.txt    | 2 ++
 projects/SelfTest/Baselines/xml.sw.approved.txt      | 1 +
 projects/SelfTest/UsageTests/Misc.tests.cpp          | 2 +-
 5 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt
index 4b96e2f4..c4ed431b 100644
--- a/projects/SelfTest/Baselines/console.std.approved.txt
+++ b/projects/SelfTest/Baselines/console.std.approved.txt
@@ -700,6 +700,7 @@ with expansion:
 
 A string sent directly to stdout
 A string sent directly to stderr
+A string sent to stderr via clog
 Message from section one
 Message from section two
 -------------------------------------------------------------------------------
diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt
index 083d8dc0..82d5e121 100644
--- a/projects/SelfTest/Baselines/console.sw.approved.txt
+++ b/projects/SelfTest/Baselines/console.sw.approved.txt
@@ -4573,6 +4573,7 @@ with expansion:
 
 A string sent directly to stdout
 A string sent directly to stderr
+A string sent to stderr via clog
 -------------------------------------------------------------------------------
 Some simple comparisons between doubles
 -------------------------------------------------------------------------------
diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt
index dbb424a3..dd5805a5 100644
--- a/projects/SelfTest/Baselines/junit.sw.approved.txt
+++ b/projects/SelfTest/Baselines/junit.sw.approved.txt
@@ -517,6 +517,7 @@ A string sent directly to stdout
       </system-out>
       <system-err>
 A string sent directly to stderr
+A string sent to stderr via clog
       </system-err>
     </testcase>
     <testcase classname="<exe-name>.global" name="Some simple comparisons between doubles" time="{duration}"/>
@@ -835,6 +836,7 @@ Message from section two
     </system-out>
     <system-err>
 A string sent directly to stderr
+A string sent to stderr via clog
     </system-err>
   </testsuite>
 </testsuites>
diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt
index be6c4f30..0821516a 100644
--- a/projects/SelfTest/Baselines/xml.sw.approved.txt
+++ b/projects/SelfTest/Baselines/xml.sw.approved.txt
@@ -5260,6 +5260,7 @@ A string sent directly to stdout
         </StdOut>
         <StdErr>
 A string sent directly to stderr
+A string sent to stderr via clog
         </StdErr>
       </OverallResult>
     </TestCase>
diff --git a/projects/SelfTest/UsageTests/Misc.tests.cpp b/projects/SelfTest/UsageTests/Misc.tests.cpp
index 31ffc478..c2c08536 100644
--- a/projects/SelfTest/UsageTests/Misc.tests.cpp
+++ b/projects/SelfTest/UsageTests/Misc.tests.cpp
@@ -148,8 +148,8 @@ TEST_CASE( "looped tests", "[.][failing]" ) {
 
 TEST_CASE( "Sends stuff to stdout and stderr", "[.]" ) {
     std::cout << "A string sent directly to stdout" << std::endl;
-
     std::cerr << "A string sent directly to stderr" << std::endl;
+    std::clog << "A string sent to stderr via clog" << std::endl;
 }
 
 TEST_CASE( "null strings" ) {