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 in catch_message.hpp

Because the issue comes from the expansions of `UNSCOPED_INFO`,
surrogate TUs could not catch this bug, and in common usage, the
include transitively comes from `catch_test_macros.hpp`.

Fixes #2758
Commit
caffe79a3172495f6a4b09de88e81e9aa67b8323
Author
Martin Hořeňovský ·
Parents
a8cf3e671047

Files · Download .tar.gz

Changes

 src/catch2/catch_message.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/catch2/catch_message.hpp b/src/catch2/catch_message.hpp
index 76a0fac7..05325ee8 100644
--- a/src/catch2/catch_message.hpp
+++ b/src/catch2/catch_message.hpp
@@ -14,6 +14,7 @@
 #include <catch2/internal/catch_stream_end_stop.hpp>
 #include <catch2/internal/catch_message_info.hpp>
 #include <catch2/catch_tostring.hpp>
+#include <catch2/interfaces/catch_interfaces_capture.hpp>
 
 #include <string>
 #include <vector>