diff options
| author | Michael Jones <michaelrj@google.com> | 2021-01-15 21:54:23 +0000 |
|---|---|---|
| committer | Michael Jones <michaelrj@google.com> | 2021-01-20 23:15:36 +0000 |
| commit | 1df0dbfcb5c0b90299fe5b74caf42e4cacce16fc (patch) | |
| tree | 92a7f1ae41ef0b3c50b1ede41d85a7b11d78e144 /libc/test/src/assert/assert_test.cpp | |
| parent | bb3f169b59e1c8bd7fd70097532220bbd11e9967 (diff) | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names
Summary:
Having a consistent prefix makes selecting all of the llvm libc tests
easier on any platform that is also using the gtest framework.
This also modifies the TEST and TEST_F macros to enforce this change
moving forward.
Reviewers: sivachandra
Subscribers:
Diffstat (limited to 'libc/test/src/assert/assert_test.cpp')
| -rw-r--r-- | libc/test/src/assert/assert_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/test/src/assert/assert_test.cpp b/libc/test/src/assert/assert_test.cpp index 035c9628a679..b22f4984de99 100644 --- a/libc/test/src/assert/assert_test.cpp +++ b/libc/test/src/assert/assert_test.cpp @@ -12,7 +12,7 @@ extern "C" int close(int); -TEST(Assert, Enabled) { +TEST(LlvmLibcAssert, Enabled) { // -1 matches against any signal, which is necessary for now until // __llvm_libc::abort() unblocks SIGABRT. Close standard error for the // child process so we don't print the assertion failure message. @@ -27,6 +27,6 @@ TEST(Assert, Enabled) { #define NDEBUG #include "src/assert/assert.h" -TEST(Assert, Disabled) { +TEST(LlvmLibcAssert, Disabled) { EXPECT_EXITS([] { assert(0); }, 0); } |
