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:
Paul Floyd
2026-01-10 15:53:43 +01:00
parent a859a42723
commit 80c17e5e70

View File

@@ -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