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

Fix missing include and wrong comment format

While the comment format was valid C++, it breaks our tooling badly.
I opened up a github issue for our tooling, because unexpected
formatting of a block comment should not silently generate invalid
single header file, see #1269.
Commit
0510d4755f715d21695ea4a5b15069d69789d7a2
Author
Martin Hořeňovský ·
Parents
e92b9c07c3a7

Files · Download .tar.gz

Changes

 include/internal/catch_output_redirect.cpp | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/include/internal/catch_output_redirect.cpp b/include/internal/catch_output_redirect.cpp
index c3ad826d..fabf9cf1 100644
--- a/include/internal/catch_output_redirect.cpp
+++ b/include/internal/catch_output_redirect.cpp
@@ -1,9 +1,9 @@
 /*
-*  Created by Martin on 28/04/2018.
-*
-*  Distributed under the Boost Software License, Version 1.0. (See accompanying
-*  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-*/
+ *  Created by Martin on 28/04/2018.
+ *
+ *  Distributed under the Boost Software License, Version 1.0. (See accompanying
+ *  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ */
 
 #include "catch_output_redirect.h"
 
@@ -13,6 +13,7 @@
 #include <cstring>
 #include <fstream>
 #include <sstream>
+#include <stdexcept>
 
 #if defined(CATCH_PLATFORM_WINDOWS)
 #include <io.h>      //_dup and _dup2