changeset 9575:a30e05c634d8

Relax test, so that it passes on older glibc systems.
author Bruno Haible <bruno@clisp.org>
date Mon, 07 Jan 2008 23:29:52 +0100
parents 1e1a08278013
children 8cae100b8cd1
files ChangeLog tests/test-wcwidth.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/tests/test-wcwidth.c
+++ b/tests/test-wcwidth.c
@@ -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 @@
 
       /* 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);