From aa9089a1a26a2f012bb4392b9ee91e5e12667ab3 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 7 Jan 2008 23:29:52 +0100 Subject: [PATCH] Relax test, so that it passes on older glibc systems. --- ChangeLog | 6 ++++++ tests/test-wcwidth.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bdc357aca9..ca56feee89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-01 Bruno Haible + + * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test + failure on older glibc systems. + Reported by Peter Fales . + 2008-01-05 Eric Blake Avoid quadratic system memmem. diff --git a/tests/test-wcwidth.c b/tests/test-wcwidth.c index 0c3c0047bf..fe1094f024 100644 --- 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 @@ 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); -- 2.30.2