Skip to content

Commit 7af1201

Browse files
committed
[msan] Remove redundant test
The test needs to control intercept_strcmp option. It's already implemented as lit.test strcmp.c.
1 parent 3a98f4d commit 7af1201

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

compiler-rt/lib/msan/tests/msan_test.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -587,20 +587,6 @@ LargeStruct LargeRetTest() {
587587
return res;
588588
}
589589

590-
TEST(MemorySanitizer, strcmp) {
591-
char s1[10];
592-
char s2[10];
593-
strncpy(s1, "foo", 10);
594-
s2[0] = 'f';
595-
s2[1] = 'n';
596-
EXPECT_GT(strcmp(s1, s2), 0);
597-
s2[1] = 'o';
598-
int res;
599-
EXPECT_UMR(res = strcmp(s1, s2));
600-
EXPECT_NOT_POISONED(res);
601-
EXPECT_EQ(strncmp(s1, s2, 1), 0);
602-
}
603-
604590
TEST(MemorySanitizer, LargeRet) {
605591
LargeStruct a = LargeRetTest();
606592
EXPECT_POISONED(a.x[0]);

0 commit comments

Comments
 (0)