We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02fa340 commit 4c8acbdCopy full SHA for 4c8acbd
libc/test/src/stdio/fileop_test.cpp
@@ -31,7 +31,7 @@ TEST(LlvmLibcFILETest, SimpleFileOperations) {
31
constexpr char FILENAME[] = "testdata/simple_operations.test";
32
::FILE *file = LIBC_NAMESPACE::fopen(FILENAME, "w");
33
ASSERT_FALSE(file == nullptr);
34
- ASSERT_EQ(LIBC_NAMESPACE::fileno(file), 3);
+ ASSERT_GE(LIBC_NAMESPACE::fileno(file), 0);
35
constexpr char CONTENT[] = "1234567890987654321";
36
ASSERT_EQ(sizeof(CONTENT) - 1,
37
LIBC_NAMESPACE::fwrite(CONTENT, 1, sizeof(CONTENT) - 1, file));
0 commit comments