Skip to content

Commit eb0741a

Browse files
committed
added macro for death tests
1 parent af85c95 commit eb0741a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/test/src/__support/wchar/wcsnrtombs_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ TEST(LlvmLibcWcsnrtombs, InvalidCharacter) {
190190
ASSERT_EQ(res.error(), EILSEQ);
191191
}
192192

193+
#if defined(LIBC_ADD_NULL_CHECKS) && !defined(LIBC_HAS_SANITIZER)
193194
TEST(LlvmLibcWcsnrtombs, NullSrc) {
194195
EXPECT_DEATH(
195196
[] {
@@ -199,3 +200,4 @@ TEST(LlvmLibcWcsnrtombs, NullSrc) {
199200
},
200201
WITH_SIGNAL(-1));
201202
}
203+
#endif // LIBC_HAS_ADDRESS_SANITIZER

0 commit comments

Comments
 (0)