]> Savannah Git Hosting - gnulib.git/commitdiff
string-buffer tests: Avoid test failure on native Windows.
authorBruno Haible <bruno@clisp.org>
Thu, 26 Sep 2024 15:01:36 +0000 (17:01 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 26 Sep 2024 15:01:36 +0000 (17:01 +0200)
Reported by Michele Locati <mlocati@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-09/msg00135.html>.

* tests/test-string-buffer.c (main): Skip a wchar_t test on native
Windows.

ChangeLog
tests/test-string-buffer.c

index 366538e8b306a3b92f1927c7887f7f7e8f200209..071f0f0fc78f3f42d8b5d5e48abf959842f434ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-09-26  Bruno Haible  <bruno@clisp.org>
+
+       string-buffer tests: Avoid test failure on native Windows.
+       Reported by Michele Locati <mlocati@gmail.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-09/msg00135.html>.
+       * tests/test-string-buffer.c (main): Skip a wchar_t test on native
+       Windows.
+
 2024-09-25  Bruno Haible  <bruno@clisp.org>
 
        manywarnings: Enable -Wthread-safety for clang.
index 580263b6564cad4a4de5469fcdb9d32c5aae3099..2bbb47cff213ad5992809bf59b9a765212bcaba1 100644 (file)
@@ -155,7 +155,7 @@ main ()
     sb_append_c (&buffer, "<");
 
     ret = sb_appendf (&buffer, "%lc", (wint_t) 0x76543210);
-    #if !defined _AIX
+    #if !(defined _AIX || (defined _WIN32 && !defined __CYGWIN__))
     ASSERT (ret < 0);
     ASSERT (errno == EILSEQ);
     #endif