diff options
author | Domen Puncer <domen@coderock.org> | 2005-05-05 19:16:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 19:36:50 -0400 |
commit | d28c2bc8d192f606a4eb831978722107b20a9405 (patch) | |
tree | b47a5cda32a70fdf62f4a4a40d6805a48ddcc0a3 /lib | |
parent | cad359c68455d6870d053184bbb0ae208e207eef (diff) |
[PATCH] fix lib/sort regression test
The regression test in lib/sort.c is currently worthless because the array
that is generated for sorting will be all zeros. This patch fixes things
so that the array that is generated will contain unsorted integers (that
are not all identical) as was probably intended.
Signed-off-by Daniel Dickman <didickman@yahoo.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sort.c b/lib/sort.c index ea3caedeabdb..b73dbb0e7c83 100644 --- a/lib/sort.c +++ b/lib/sort.c | |||
@@ -90,7 +90,7 @@ int cmpint(const void *a, const void *b) | |||
90 | 90 | ||
91 | static int sort_test(void) | 91 | static int sort_test(void) |
92 | { | 92 | { |
93 | int *a, i, r = 0; | 93 | int *a, i, r = 1; |
94 | 94 | ||
95 | a = kmalloc(1000 * sizeof(int), GFP_KERNEL); | 95 | a = kmalloc(1000 * sizeof(int), GFP_KERNEL); |
96 | BUG_ON(!a); | 96 | BUG_ON(!a); |