]> Savannah Git Hosting - gnulib.git/commitdiff
xstrtol, xstrtoll tests: Avoid test failure after 2024-07-25 change.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 12:54:18 +0000 (14:54 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 12:54:18 +0000 (14:54 +0200)
* tests/test-xstrtol.c (main): Update expected test results.

ChangeLog
tests/test-xstrtol.c

index 4edac54052f3dcecf3b88a73fbb144f4f1e6a2de..c5af62ed095476f21b54bb2589b1ece71cf0520d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-29  Bruno Haible  <bruno@clisp.org>
+
+       xstrtol, xstrtoll tests: Avoid test failure after 2024-07-25 change.
+       * tests/test-xstrtol.c (main): Update expected test results.
+
 2024-07-29  Bruno Haible  <bruno@clisp.org>
 
        logp1l: Add tests.
index 2b2b51a47e95419da827c5165b4f56c3c2c41f3c..5891f4bbfd597181b0e355af891bc133106f7e04 100644 (file)
@@ -74,13 +74,12 @@ main (int argc, char **argv)
         char *endp = NULL;
         __strtol_t val = -17;
         strtol_error s_err = __xstrtol (input, &endp, -1, &val, "k");
-#if defined __FreeBSD__
+#if !defined __GLIBC__
         ASSERT (s_err == LONGINT_OK);
         ASSERT (endp == input + 1);
         ASSERT (val == 1024);
 #else
         ASSERT (s_err == LONGINT_INVALID);
-        ASSERT (endp == NULL);
         ASSERT (val == -17);
 #endif
       }