Merge "Use strerrorname_np() in ASSERT_ERRNO()." into main
diff --git a/tests/fortify_test.cpp b/tests/fortify_test.cpp
index cc3080d..f2c802f 100644
--- a/tests/fortify_test.cpp
+++ b/tests/fortify_test.cpp
@@ -412,9 +412,6 @@
ASSERT_FORTIFY(sprintf(buf, "%s", source_buf));
}
-#if !__has_attribute(alloc_size)
-// TODO: remove this after Clang prebuilt rebase.
-#else
TEST_F(DEATHTEST, sprintf_malloc_fortified) {
char* buf = (char *) malloc(10);
char source_buf[11];
@@ -422,7 +419,6 @@
ASSERT_FORTIFY(sprintf(buf, "%s", source_buf));
free(buf);
}
-#endif
TEST_F(DEATHTEST, sprintf2_fortified) {
char buf[5];