Skip to content

Commit

Permalink
[libc][test] Fix TEST->TEST_F typo in getenv_and_setenv_test.cpp (llv…
Browse files Browse the repository at this point in the history
…m#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.
  • Loading branch information
rupprecht authored Jun 4, 2024
1 parent 85e4e9d commit 392ca64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/test/src/fenv/getenv_and_setenv_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ TEST_F(LlvmLibcFEnvTest, GetEnvAndSetEnv) {
}
}

TEST(LlvmLibcFenvTest, Set_FE_DFL_ENV) {
TEST_F(LlvmLibcFEnvTest, Set_FE_DFL_ENV) {
// We will disable all exceptions to prevent invocation of the exception
// handler.
LIBC_NAMESPACE::fputil::disable_except(FE_ALL_EXCEPT);
Expand Down

0 comments on commit 392ca64

Please sign in to comment.