mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-12 00:19:31 +08:00
regtest: undo changes to str_tester as a workaround for darwin checked functions
I had added parens to force the use of the function rarther than a macro expanding to the _chk version. The _chk functions are now wrapped so no longer need to keep the workaround.
This commit is contained in:
@@ -979,14 +979,14 @@ static void
|
||||
test_memcmp (void)
|
||||
{
|
||||
it = "memcmp";
|
||||
check((memcmp)("a", "a", 1) == 0, 1); /* Identity. */
|
||||
check((memcmp)("abc", "abc", 3) == 0, 2); /* Multicharacter. */
|
||||
check((memcmp)("abcd", "abce", 4) < 0, 3); /* Honestly unequal. */
|
||||
check((memcmp)("abce", "abcd", 4) > 0, 4);
|
||||
check((memcmp)("alph", "beta", 4) < 0, 5);
|
||||
check((memcmp)("a\203", "a\003", 2) > 0, 6);
|
||||
check((memcmp)("abce", "abcd", 3) == 0, 7); /* Count limited. */
|
||||
check((memcmp)("abc", "def", 0) == 0, 8); /* Zero count. */
|
||||
check(memcmp("a", "a", 1) == 0, 1); /* Identity. */
|
||||
check(memcmp("abc", "abc", 3) == 0, 2); /* Multicharacter. */
|
||||
check(memcmp("abcd", "abce", 4) < 0, 3); /* Honestly unequal. */
|
||||
check(memcmp("abce", "abcd", 4) > 0, 4);
|
||||
check(memcmp("alph", "beta", 4) < 0, 5);
|
||||
check(memcmp("a\203", "a\003", 2) > 0, 6);
|
||||
check(memcmp("abce", "abcd", 3) == 0, 7); /* Count limited. */
|
||||
check(memcmp("abc", "def", 0) == 0, 8); /* Zero count. */
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user