Relax test, so that it passes on older glibc systems.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Jan 2008 22:29:52 +0000 (23:29 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 7 Jan 2008 22:29:52 +0000 (23:29 +0100)
ChangeLog
tests/test-wcwidth.c

index bdc357a..ca56fee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-01  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
+       failure on older glibc systems.
+       Reported by Peter Fales <psfales@alcatel-lucent.com>.
+
 2008-01-05  Eric Blake  <ebb9@byu.net>
 
        Avoid quadratic system memmem.
index 0c3c004..fe1094f 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of wcwidth() function.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -57,7 +57,7 @@ main ()
 
       /* Test width of some format control characters.  */
       ASSERT (wcwidth (0x200E) <= 0);
-      ASSERT (wcwidth (0x2060) == 0);
+      ASSERT (wcwidth (0x2060) <= 0);
 #if 0  /* wchar_t may be only 16 bits.  */
       ASSERT (wcwidth (0xE0001) <= 0);
       ASSERT (wcwidth (0xE0044) <= 0);