[libc-commits] [libc] 392ca64 - [libc][test] Fix TEST->TEST_F typo in getenv_and_setenv_test.cpp (#94304)
via libc-commits
libc-commits at lists.llvm.org
Mon Jun 3 19:48:38 PDT 2024
Author: Jordan Rupprecht
Date: 2024-06-03T21:48:33-05:00
New Revision: 392ca64893dc77f823cb4734238f1ba1d271b997
URL: https://github.com/llvm/llvm-project/commit/392ca64893dc77f823cb4734238f1ba1d271b997
DIFF: https://github.com/llvm/llvm-project/commit/392ca64893dc77f823cb4734238f1ba1d271b997.diff
LOG: [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.
Added:
Modified:
libc/test/src/fenv/getenv_and_setenv_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/fenv/getenv_and_setenv_test.cpp b/libc/test/src/fenv/getenv_and_setenv_test.cpp
index 7257e75cb421a..8fc2787ecb5b1 100644
--- a/libc/test/src/fenv/getenv_and_setenv_test.cpp
+++ b/libc/test/src/fenv/getenv_and_setenv_test.cpp
@@ -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);
More information about the libc-commits
mailing list