Skip to content

Commit 327bb75

Browse files
committed
Fix getenv_and_setenv_test for Windows.
1 parent d3d38d2 commit 327bb75

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

libc/test/src/fenv/getenv_and_setenv_test.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
using LlvmLibcFEnvTest = LIBC_NAMESPACE::testing::FEnvSafeTest;
2323

24-
#ifndef LIBC_TARGET_OS_IS_WINDOWS
2524
TEST_F(LlvmLibcFEnvTest, GetEnvAndSetEnv) {
2625
// We will disable all exceptions to prevent invocation of the exception
2726
// handler.
@@ -73,17 +72,3 @@ TEST_F(LlvmLibcFEnvTest, Set_FE_DFL_ENV) {
7372
int rm = LIBC_NAMESPACE::fegetround();
7473
EXPECT_EQ(rm, FE_TONEAREST);
7574
}
76-
#endif
77-
78-
#ifdef LIBC_TARGET_OS_IS_WINDOWS
79-
TEST_F(LlvmLibcFEnvTest, Windows_Set_Get_Test) {
80-
// If a valid fenv_t is written, then reading it back out should be identical.
81-
fenv_t setEnv = {0x7e00053e, 0x0f00000f};
82-
fenv_t getEnv;
83-
ASSERT_EQ(LIBC_NAMESPACE::fesetenv(&setEnv), 0);
84-
ASSERT_EQ(LIBC_NAMESPACE::fegetenv(&getEnv), 0);
85-
86-
ASSERT_EQ(setEnv._Fe_ctl, getEnv._Fe_ctl);
87-
ASSERT_EQ(setEnv._Fe_stat, getEnv._Fe_stat);
88-
}
89-
#endif

0 commit comments

Comments
 (0)