summaryrefslogtreecommitdiff
path: root/src/test/catch.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-07 04:44:45 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-07 04:44:45 +0300
commit9bbd191307c97c7589f93a64a4eb9abf3f11c46b (patch)
treec896ac7a26212ff594187a716f1d3b834869bca5 /src/test/catch.hpp
parentabdf125bd2e7c97327c84fd4348b1b74225dbcde (diff)
downloadmanaverse-9bbd191307c97c7589f93a64a4eb9abf3f11c46b.tar.gz
manaverse-9bbd191307c97c7589f93a64a4eb9abf3f11c46b.tar.bz2
manaverse-9bbd191307c97c7589f93a64a4eb9abf3f11c46b.tar.xz
manaverse-9bbd191307c97c7589f93a64a4eb9abf3f11c46b.zip
Fix catch compilation without HAVE_EXECINFO define.
Diffstat (limited to 'src/test/catch.hpp')
-rw-r--r--src/test/catch.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/catch.hpp b/src/test/catch.hpp
index 555760450..ffaa1d3d6 100644
--- a/src/test/catch.hpp
+++ b/src/test/catch.hpp
@@ -6774,10 +6774,13 @@ namespace Catch {
message2.append(strings[i]).append("\n");
free(strings);
}
-#endif // HAVE_EXECINFO
-// stack
tempResult.message = message2;
+#else // HAVE_EXECINFO
+
+ tempResult.message = message;
+#endif // HAVE_EXECINFO
+// stack
AssertionResult result(m_lastAssertionInfo, tempResult);
getResultCapture().assertionEnded(result);