mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Update.
* collate-test.c (main): Correct logic in test.
This commit is contained in:
parent
f6ada7adcb
commit
a35766db16
@ -1,5 +1,7 @@
|
||||
1999-12-26 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* collate-test.c (main): Correct logic in test.
|
||||
|
||||
* tst-trans.sh: Use correct name for dynamic loader.
|
||||
|
||||
1999-12-23 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Test collation function using real data.
|
||||
Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997, 1999 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||
|
||||
@ -93,11 +93,9 @@ main (int argc, char *argv[])
|
||||
/* While we are at it a first little test. */
|
||||
r1 = strcoll (strings[idx1].key, strings[idx2].key);
|
||||
r2 = strcoll (strings[idx2].key, strings[idx1].key);
|
||||
r = -(r1 * r2);
|
||||
if (r)
|
||||
r /= abs (r1 * r2);
|
||||
r = r1 * r2;
|
||||
|
||||
if (r < 0 || abs (r1) != r || abs (r2) != r)
|
||||
if (r > 0 || (r == 0 && r1 != 0) || (r == 0 && r2 != 0))
|
||||
printf ("`%s' and `%s' collate wrong: %d vs. %d\n",
|
||||
strings[idx1].key, strings[idx2].key, r1, r2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user