]> Savannah Git Hosting - gnulib.git/commitdiff
parse-datetime tests: Avoid a test failure on NetBSD.
authorBruno Haible <bruno@clisp.org>
Sun, 14 Mar 2021 18:19:07 +0000 (19:19 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 14 Mar 2021 18:19:07 +0000 (19:19 +0100)
Reported by Thomas Klausner <tk@giga.or.at> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00069.html>.

* tests/test-parse-datetime.c (main): Skip two tests on NetBSD.

ChangeLog
tests/test-parse-datetime.c

index a5ba8488f5eec43594f152ae76a2fbcba01632ea..63aaa7b487aba84fb1f6b464cc8922fd1451935c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-03-14  Bruno Haible  <bruno@clisp.org>
+
+       parse-datetime tests: Avoid a test failure on NetBSD.
+       Reported by Thomas Klausner <tk@giga.or.at> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00069.html>.
+       * tests/test-parse-datetime.c (main): Skip two tests on NetBSD.
+
 2021-03-10  Paul Eggert  <eggert@cs.ucla.edu>
 
        libc-config: port to DragonFlyBSD 5.9
index acca47c88a15cea0fdb5ca624b94798e233c7dc2..b972e962397fa67bcc9717aefcfb3f909f863363 100644 (file)
@@ -431,8 +431,12 @@ main (int argc _GL_UNUSED, char **argv)
   ASSERT (   parse_datetime (&result, "TZ=\"\"", &now));
   ASSERT (   parse_datetime (&result, "TZ=\"\" ", &now));
   ASSERT (   parse_datetime (&result, " TZ=\"\"", &now));
+  /* Exercise patterns which may be valid or invalid, depending on the
+     platform.  */
+#if !defined __NetBSD__
   ASSERT (   parse_datetime (&result, "TZ=\"\\\\\"", &now));
   ASSERT (   parse_datetime (&result, "TZ=\"\\\"\"", &now));
+#endif
 
   /* Outlandishly-long time zone abbreviations should not cause problems.  */
   {