mirror-llvm-project/libc/test/integration
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
..
scudo [libc] Restore sysconf to default entrypoints (#197696) 2026-05-14 17:22:16 +01:00
src [libc][test] Add EXPECT_STREQ and ASSERT_STREQ macros for integration tests (#212729) 2026-07-30 15:46:02 +02:00
startup [libc][test] Add EXPECT_STREQ and ASSERT_STREQ macros for integration tests (#212729) 2026-07-30 15:46:02 +02:00
CMakeLists.txt [libc] Switch check-libc from CTest to lit (#193798) 2026-04-24 08:20:43 +01:00