Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/examples/231-Cfg-OutputStreams.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-12-08 20:57:55 +0100
committerMartin Hořeňovský2019-12-08 20:58:52 +0100
commit29b441949cc09f59a867972cbbac4b88f1a10843 (patch)
tree74c279661da73ae71338623f83b4d666faf390ed /examples/231-Cfg-OutputStreams.cpp
parent70ef2f7f12c2c62714a2e926679172142ea150ff (diff)
downloadcatch3-29b441949cc09f59a867972cbbac4b88f1a10843.tar.gz
Port the last example
Diffstat (limited to 'examples/231-Cfg-OutputStreams.cpp')
-rw-r--r--examples/231-Cfg-OutputStreams.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/231-Cfg-OutputStreams.cpp b/examples/231-Cfg-OutputStreams.cpp
index 2f42c297..8753fcf6 100644
--- a/examples/231-Cfg-OutputStreams.cpp
+++ b/examples/231-Cfg-OutputStreams.cpp
@@ -6,10 +6,12 @@
// there is no important difference between having `std::cerr` buffered
// or unbuffered.
-#define CATCH_CONFIG_NOSTDOUT
-#define CATCH_CONFIG_MAIN
+#include <catch2/catch_default_main.hpp>
+
#include <catch2/catch.hpp>
+#include <sstream>
+#include <cstdio>
class out_buff : public std::stringbuf {
std::FILE* m_stream;