mirror-llvm-project/libc/test/IntegrationTest
Pavel Labath cc623d6e99
[libc][test] Add EXPECT_STREQ and ASSERT_STREQ macros for integration tests (#212729)
Add EXPECT_STREQ and ASSERT_STREQ macros to IntegrationTest/test.h using
cpp::string_view. Note that, unlike the unit test macro (but like
googletest), this version treats NULL as distinct from "". The
inconsistency is unfortunate, but I think it's important as the code is
used for testing functions like getenv(), where "" and NULL have very
different meanings.

We should probably follow this up with a change to make the unit test
macro behave the same way.

Update integration tests to use the new macros instead of handrolled
string equality functions (my_streq), strcmp, inline_strcmp, or
string_view wrappers.
2026-07-30 15:46:02 +02:00
..
CMakeLists.txt [libc][test] Add EXPECT_STREQ and ASSERT_STREQ macros for integration tests (#212729) 2026-07-30 15:46:02 +02:00
test.cpp [libc] Fix -Wshadow warning in IntegrationTest/test.cpp (#196858) 2026-05-11 16:06:20 -04:00
test.h [libc][test] Add EXPECT_STREQ and ASSERT_STREQ macros for integration tests (#212729) 2026-07-30 15:46:02 +02:00