Skip to content

Commit c43f971

Browse files
committed
hack backtrace into macos
1 parent fff90bf commit c43f971

File tree

2 files changed

+4508
-0
lines changed

2 files changed

+4508
-0
lines changed

trantor/unittests/HashUnittest.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
using namespace trantor;
88
using namespace trantor::utils;
99

10+
#ifdef __APPLE__
11+
#define BACKWARD_HAS_UNWIND 1
12+
#endif
13+
14+
#include "backward.hpp"
15+
namespace backward {
16+
17+
backward::SignalHandling sh;
18+
19+
}
20+
1021
TEST(Hash, MD5)
1122
{
1223
EXPECT_EQ(toHexString(md5("hello")), "5D41402ABC4B2A76B9719D911017C592");
@@ -53,6 +64,7 @@ TEST(Hash, BLAKE2b)
5364

5465
int main(int argc, char **argv)
5566
{
67+
5668
testing::InitGoogleTest(&argc, argv);
5769
return RUN_ALL_TESTS();
5870
}

0 commit comments

Comments
 (0)