diff options
| author | Martin Hořeňovský | 2019-12-08 20:57:55 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-12-08 20:58:52 +0100 |
| commit | 29b441949cc09f59a867972cbbac4b88f1a10843 (patch) | |
| tree | 74c279661da73ae71338623f83b4d666faf390ed /examples/231-Cfg-OutputStreams.cpp | |
| parent | 70ef2f7f12c2c62714a2e926679172142ea150ff (diff) | |
| download | catch3-29b441949cc09f59a867972cbbac4b88f1a10843.tar.gz | |
Port the last example
Diffstat (limited to 'examples/231-Cfg-OutputStreams.cpp')
| -rw-r--r-- | examples/231-Cfg-OutputStreams.cpp | 6 |
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; |