We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fff90bf commit f57b41bCopy full SHA for f57b41b
trantor/unittests/HashUnittest.cc
@@ -7,6 +7,10 @@
7
using namespace trantor;
8
using namespace trantor::utils;
9
10
+#ifdef __APPLE__
11
+#include <execinfo.h>
12
+#endif
13
+
14
TEST(Hash, MD5)
15
{
16
EXPECT_EQ(toHexString(md5("hello")), "5D41402ABC4B2A76B9719D911017C592");
@@ -53,6 +57,15 @@ TEST(Hash, BLAKE2b)
53
57
54
58
int main(int argc, char **argv)
55
59
60
61
+ signal(SIGILL, [](int) {
62
+ void *array[128];
63
+ size_t size;
64
+ size = backtrace(array, 128);
65
+ backtrace_symbols_fd(array, size, STDERR_FILENO);
66
+ exit(-1);
67
+ });
68
56
69
testing::InitGoogleTest(&argc, argv);
70
return RUN_ALL_TESTS();
71
}
0 commit comments