[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:
This commit is contained in:
1 parent
bb3f169b59
commit
1df0dbfcb5
121 files changed
+487
-443
No files matched your search
@@ -9,25 +9,25 @@
|
||||
#include "src/string/memcmp.h"
|
||||
#include "utils/UnitTest/Test.h"
|
||||
|
||||
TEST(MemcmpTest, CmpZeroByte) {
|
||||
TEST(LlvmLibcMemcmpTest, CmpZeroByte) {
|
||||
const char *lhs = "ab";
|
||||
const char *rhs = "bc";
|
||||
EXPECT_EQ(__llvm_libc::memcmp(lhs, rhs, 0), 0);
|
||||
}
|
||||
|
||||
TEST(MemcmpTest, LhsRhsAreTheSame) {
|
||||
TEST(LlvmLibcMemcmpTest, LhsRhsAreTheSame) {
|
||||
const char *lhs = "ab";
|
||||
const char *rhs = "ab";
|
||||
EXPECT_EQ(__llvm_libc::memcmp(lhs, rhs, 2), 0);
|
||||
}
|
||||
|
||||
TEST(MemcmpTest, LhsBeforeRhsLexically) {
|
||||
TEST(LlvmLibcMemcmpTest, LhsBeforeRhsLexically) {
|
||||
const char *lhs = "ab";
|
||||
const char *rhs = "ac";
|
||||
EXPECT_EQ(__llvm_libc::memcmp(lhs, rhs, 2), -1);
|
||||
}
|
||||
|
||||
TEST(MemcmpTest, LhsAfterRhsLexically) {
|
||||
TEST(LlvmLibcMemcmpTest, LhsAfterRhsLexically) {
|
||||
const char *lhs = "ac";
|
||||
const char *rhs = "ab";
|
||||
EXPECT_EQ(__llvm_libc::memcmp(lhs, rhs, 2), 1);
|
||||
|
||||
Reference in new issue
Block a user