Skip to content

Commit 392ca64

Browse files
authored
[libc][test] Fix TEST->TEST_F typo in getenv_and_setenv_test.cpp (#94304)
This manifests as `AddressSanitizer: stack-use-after-return` w/o this change. The `~CheckFEnv()` method of checking fenv seems to only work for test fixtures.
1 parent 85e4e9d commit 392ca64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/fenv/getenv_and_setenv_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ TEST_F(LlvmLibcFEnvTest, GetEnvAndSetEnv) {
4141
}
4242
}
4343

44-
TEST(LlvmLibcFenvTest, Set_FE_DFL_ENV) {
44+
TEST_F(LlvmLibcFEnvTest, Set_FE_DFL_ENV) {
4545
// We will disable all exceptions to prevent invocation of the exception
4646
// handler.
4747
LIBC_NAMESPACE::fputil::disable_except(FE_ALL_EXCEPT);

0 commit comments

Comments
 (0)