]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
regtest: undo changes to str_tester as a workaround for darwin checked functions
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 10 Jan 2026 14:53:43 +0000 (15:53 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 10 Jan 2026 14:53:43 +0000 (15:53 +0100)
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.

memcheck/tests/str_tester.c

index d910b69092703ceb4920e125f9fd5a9e19af3e98..1201bbfc225b27d3364d3e8c65f7f3589ca91cab 100644 (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