We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4209e41 commit 905de5cCopy full SHA for 905de5c
libc/test/src/stdio/fprintf_test.cpp
@@ -83,7 +83,7 @@ TEST(LlvmLibcFPrintfTest, WriteToFile) {
83
written =
84
LIBC_NAMESPACE::fprintf(file, "Writing to a read only file should fail.");
85
EXPECT_LT(written, 0);
86
- ASSERT_ERRNO_EQ(EBADF);
+ ASSERT_ERRNO_FAILURE();
87
88
ASSERT_EQ(printf_test::fclose(file), 0);
89
}
@@ -100,7 +100,7 @@ TEST(LlvmLibcFPrintfTest, NullPtrCheck) {
100
int ret =
101
LIBC_NAMESPACE::fprintf(file, "hello %n", static_cast<int *>(nullptr));
102
EXPECT_LT(ret, 0);
103
- ASSERT_ERRNO_EQ(EINVAL);
104
105
106
0 commit comments