From 89ee45be0b1f9c1883c3a988ab6f5ac2ed955e24 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 19 May 2018 15:48:16 -0700 Subject: [PATCH] Add test case for DontEchoStdinToStdoutRAII --- test/cpp-utils/CMakeLists.txt | 1 + test/cpp-utils/io/DontEchoStdinToStdoutRAIITest.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/cpp-utils/io/DontEchoStdinToStdoutRAIITest.cpp diff --git a/test/cpp-utils/CMakeLists.txt b/test/cpp-utils/CMakeLists.txt index 4c2b9996..4ea5a97d 100644 --- a/test/cpp-utils/CMakeLists.txt +++ b/test/cpp-utils/CMakeLists.txt @@ -21,6 +21,7 @@ set(SOURCES tempfile/TempDirTest.cpp network/CurlHttpClientTest.cpp network/FakeHttpClientTest.cpp + io/DontEchoStdinToStdoutRAIITest.cpp io/ConsoleIncludeTest.cpp io/ConsoleTest_AskYesNo.cpp io/ConsoleTest_Print.cpp diff --git a/test/cpp-utils/io/DontEchoStdinToStdoutRAIITest.cpp b/test/cpp-utils/io/DontEchoStdinToStdoutRAIITest.cpp new file mode 100644 index 00000000..75dec5f3 --- /dev/null +++ b/test/cpp-utils/io/DontEchoStdinToStdoutRAIITest.cpp @@ -0,0 +1,8 @@ +#include +#include + +using cpputils::DontEchoStdinToStdoutRAII; + +TEST(DontEchoStdinToStdoutRAIITest, DoesntCrash) { + DontEchoStdinToStdoutRAII a; +}