From 7c5a21fb7d3f389cfd63fd2e0b55dba987cd3955 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 5 Dec 2017 17:48:15 +0000 Subject: [PATCH] Added clog test --- 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 A string sent directly to stderr +A string sent to stderr via clog @@ -835,6 +836,7 @@ Message from section two A string sent directly to stderr +A string sent to stderr via clog 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 A string sent directly to stderr +A string sent to stderr via clog 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" ) {