diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2024-06-03 21:48:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 21:48:33 -0500 |
commit | 392ca64893dc77f823cb4734238f1ba1d271b997 (patch) | |
tree | 4b648be8c9c86d1b027f5819c9b156539d6245be /libc | |
parent | 85e4e9d2150d62be578065cc22a37c2c7613ce88 (diff) | |
download | llvm-392ca64893dc77f823cb4734238f1ba1d271b997.zip llvm-392ca64893dc77f823cb4734238f1ba1d271b997.tar.gz llvm-392ca64893dc77f823cb4734238f1ba1d271b997.tar.bz2 |
[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.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/test/src/fenv/getenv_and_setenv_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/src/fenv/getenv_and_setenv_test.cpp b/libc/test/src/fenv/getenv_and_setenv_test.cpp index 7257e75..8fc2787 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); |