Skip to content

Commit e01d299

Browse files
fixup! Add macro for static variable definition
1 parent 0c45cb4 commit e01d299

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/test.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8471,6 +8471,7 @@ TEST(ClientInThreadTest, Issue2068) {
84718471
}
84728472
}
84738473

8474+
#ifdef __SANITIZE_ADDRESS__
84748475
Server *issue2097_svr = nullptr;
84758476
std::thread *issue2097_svr_thread = nullptr;
84768477

@@ -8510,7 +8511,8 @@ TEST(ExitTimeDtorsTest, Issue2097) {
85108511
#ifdef CPPHTTPLIB_NO_EXIT_TIME_DESTRUCTORS
85118512
::testing::ExitedWithCode(42),
85128513
#else
8513-
::testing::KilledBySignal(SIGSEGV),
8514+
::testing::ExitedWithCode(1),
85148515
#endif
85158516
"");
8516-
}
8517+
}
8518+
#endif

0 commit comments

Comments
 (0)