From: Bruno Haible Date: Mon, 27 May 2024 22:24:02 +0000 (+0200) Subject: nstrftime, c-nstrftime tests: Avoid some failures on native Windows. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=83b3f211dc87958a119553c875fb5b243fa1b005;p=gnulib.git nstrftime, c-nstrftime tests: Avoid some failures on native Windows. * tests/test-nstrftime.h (tzalloc_test): Fix typo in last commit. --- diff --git a/tests/test-nstrftime.h b/tests/test-nstrftime.h index 6a6b10daea..d8e2a3915d 100644 --- a/tests/test-nstrftime.h +++ b/tests/test-nstrftime.h @@ -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 ) ) {