summaryrefslogtreecommitdiff
path: root/libc/test/src/assert/assert_test.cpp
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2021-01-15 21:54:23 +0000
committerMichael Jones <michaelrj@google.com>2021-01-20 23:15:36 +0000
commit1df0dbfcb5c0b90299fe5b74caf42e4cacce16fc (patch)
tree92a7f1ae41ef0b3c50b1ede41d85a7b11d78e144 /libc/test/src/assert/assert_test.cpp
parentbb3f169b59e1c8bd7fd70097532220bbd11e9967 (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.cpp4
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);
}