Skip to content

Commit 48c42bf

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

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/test.cc

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

8474+
#if defined(__SANITIZE_ADDRESS__) || \
8475+
(defined(__has_feature) && __has_feature(address_sanitizer))
84748476
Server *issue2097_svr = nullptr;
84758477
std::thread *issue2097_svr_thread = nullptr;
84768478

@@ -8510,7 +8512,8 @@ TEST(ExitTimeDtorsTest, Issue2097) {
85108512
#ifdef CPPHTTPLIB_NO_EXIT_TIME_DESTRUCTORS
85118513
::testing::ExitedWithCode(42),
85128514
#else
8513-
::testing::KilledBySignal(SIGSEGV),
8515+
::testing::ExitedWithCode(1),
85148516
#endif
85158517
"");
8516-
}
8518+
}
8519+
#endif

0 commit comments

Comments
 (0)