]> Savannah Git Hosting - gnulib.git/commitdiff
xstrtol, xstrtoll tests: Avoid test failure after 2024-07-25 change.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Jan 2025 17:52:47 +0000 (18:52 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 18 Jan 2025 08:02:20 +0000 (09:02 +0100)
* tests/test-xstrtol.c (main): Update expected test results regarding
Cygwin 2.9.0.

ChangeLog
tests/test-xstrtol.c

index 134e30f0abc204b70ebd2e7565d12a367c53208d..e9a94eef12a892178cb4aa5d3523b487a66f7be4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-01-05  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 regarding
+       Cygwin 2.9.0.
+
 2025-01-05  Bruno Haible  <bruno@clisp.org>
 
        tests: Don't use module 'getcwd' as dependency.
index a8291bb9374e10d8cac182ed32a869f3c7e80c40..fe68dc00e61bbb40217661022084804542291d6c 100644 (file)
@@ -70,13 +70,13 @@ main (int argc, char **argv)
 
       /* Test an invalid base (undefined behaviour, as documented in xstrtol.h).
          Reported by Alejandro Colomar.  */
-#if !defined _MSC_VER
+#if !(defined __CYGWIN__ || defined _MSC_VER)
       {
         const char input[] = "k";
         char *endp = NULL;
         __strtol_t val = -17;
         strtol_error s_err = __xstrtol (input, &endp, -1, &val, "k");
-# if !(defined __GLIBC__ || defined __CYGWIN__ || is_GNULIB_strtol)
+# if !(defined __GLIBC__ || is_GNULIB_strtol)
         ASSERT (s_err == LONGINT_OK);
         ASSERT (endp == input + 1);
         ASSERT (val == 1024);