about summary refs log tree commit diff
path: root/localedata/tests-mbwc/tst_wcscmp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-10-01 18:47:09 +0000
committerUlrich Drepper <drepper@redhat.com>2000-10-01 18:47:09 +0000
commitd6040f178121e25478673ba0668acb7e54a299b8 (patch)
tree71fd6bb7971c55a5c64be749e4336f11a25b4c7d /localedata/tests-mbwc/tst_wcscmp.c
parentaaca11d8a11e4c04c7a5ed1db0adaf4a4c192853 (diff)
downloadglibc-d6040f178121e25478673ba0668acb7e54a299b8.tar.gz
glibc-d6040f178121e25478673ba0668acb7e54a299b8.tar.xz
glibc-d6040f178121e25478673ba0668acb7e54a299b8.zip
Update.
2000-09-30  Bruno Haible  <haible@clisp.cons.org>

	* tests-mbwc/tst_wcscmp.c (tst_wcscmp): Take the sign of ret.
	* tests-mbwc/dat_wcscmp.c (tst_wcscmp_loc): Don't expect precise
	return values.  Only the sign matters.
Diffstat (limited to 'localedata/tests-mbwc/tst_wcscmp.c')
-rw-r--r--localedata/tests-mbwc/tst_wcscmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/localedata/tests-mbwc/tst_wcscmp.c b/localedata/tests-mbwc/tst_wcscmp.c
index ecd825c228..594682ce9d 100644
--- a/localedata/tests-mbwc/tst_wcscmp.c
+++ b/localedata/tests-mbwc/tst_wcscmp.c
@@ -23,6 +23,7 @@ tst_wcscmp (FILE * fp, int debug_flg)
       ws1 = TST_INPUT (wcscmp).ws1;
       ws2 = TST_INPUT (wcscmp).ws2;
       ret = wcscmp (ws1, ws2);
+      ret = (ret > 0 ? 1 : ret < 0 ? -1 : 0);
 
       if (debug_flg)
 	{