]> Savannah Git Hosting - gnulib.git/commitdiff
nstrftime, c-nstrftime tests: Avoid some failures on native Windows.
authorBruno Haible <bruno@clisp.org>
Mon, 27 May 2024 22:24:02 +0000 (00:24 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 27 May 2024 22:24:02 +0000 (00:24 +0200)
* tests/test-nstrftime.h (tzalloc_test): Fix typo in last commit.

tests/test-nstrftime.h

index 6a6b10daeaa7f6424e0f1838abb698025584bd62..d8e2a3915dd13b6d0fa6df96a831416d3fe3d477 100644 (file)
@@ -222,7 +222,7 @@ tzalloc_test (void)
                  && STREQ (buf + n - sizeof "(GMT)" + 1, "(GMT)"))
 #if defined _WIN32 && !defined __CYGWIN__
              /* On native Windows, the time zone is printed differently.  */
-             || strncmp (buf, LT[i].exp, 21) == 0
+             || strncmp (buf, LT[i].exp, 20) == 0
 #endif
          )  )
         {