[all-commits] [llvm/llvm-project] 3122ac: [libc] Move test macro implementations out of the ...
Pavel Labath via All-commits
all-commits at lists.llvm.org
Thu Jul 30 06:47:05 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3122acf9f49012f645ea45e741b81910333a77bc
https://github.com/llvm/llvm-project/commit/3122acf9f49012f645ea45e741b81910333a77bc
Author: Pavel Labath <pavel at labath.sk>
Date: 2026-07-30 (Thu, 30 Jul 2026)
Changed paths:
M libc/test/UnitTest/LibcDeathTestExecutors.cpp
M libc/test/UnitTest/LibcTest.cpp
M libc/test/UnitTest/LibcTest.h
M libc/test/src/strings/wide_read_memory_test.cpp
Log Message:
-----------
[libc] Move test macro implementations out of the Test class (#212783)
This is useful for several reasons:
- it makes it possible to use the macros outside of the test methods,
aligning with googletest. Although this isn't recommended, the
alternatives are often not worth it.
- it makes it possible (with additional changes) to expose this
infrastructure to C_TESTs (which currently use the assert() macro, which
is a no-op in release mode)
- it makes it possible to add (and have assertions in) googletest style
SetUp/TearDownTestSuite functions.
I've converted the main assertion macros for now, to test the waters.
I'm planning to handle EXPECT/ASSERT_THAT and EXPECT/ASSERT_EXIT/DEATH
in a follow-up.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list