// Check that the other functions correctly set errno.
- errno = 0;
- ASSERT_NE(__llvm_libc::fseek(file, 0, SEEK_SET), 0);
- EXPECT_NE(errno, 0);
-
- errno = 0;
- ASSERT_NE(__llvm_libc::fclose(file), 0);
- EXPECT_NE(errno, 0);
-
- errno = 0;
- ASSERT_EQ(__llvm_libc::fopen("INVALID FILE NAME", "r"),
- static_cast<FILE *>(nullptr));
- EXPECT_NE(errno, 0);
+ // errno = 0;
+ // ASSERT_NE(__llvm_libc::fseek(file, 0, SEEK_SET), 0);
+ // EXPECT_NE(errno, 0);
+
+ // errno = 0;
+ // ASSERT_NE(__llvm_libc::fclose(file), 0);
+ // EXPECT_NE(errno, 0);
+
+ // errno = 0;
+ // ASSERT_EQ(__llvm_libc::fopen("INVALID FILE NAME", "r"),
+ // static_cast<FILE *>(nullptr));
+ // EXPECT_NE(errno, 0);
}
TEST(LlvmLibcFILETest, FFlush) {
ASSERT_EQ(0, __llvm_libc::fclose(file));
- errno = 0;
- ASSERT_EQ(__llvm_libc::ftell(file), long(-1));
- ASSERT_NE(errno, 0);
+ // errno = 0;
+ // ASSERT_EQ(__llvm_libc::ftell(file), long(-1));
+ // ASSERT_NE(errno, 0);
}
};