* [patch 1/8] fix lib/sort regression test
@ 2005-04-08 7:50 domen
0 siblings, 0 replies; only message in thread
From: domen @ 2005-04-08 7:50 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, domen, didickman
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>
---
kj-domen/lib/sort.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN lib/sort.c~bug-lib_sort lib/sort.c
--- kj/lib/sort.c~bug-lib_sort 2005-04-05 12:57:40.000000000 +0200
+++ kj-domen/lib/sort.c 2005-04-05 12:57:40.000000000 +0200
@@ -90,7 +90,7 @@ int cmpint(const void *a, const void *b)
static int sort_test(void)
{
- int *a, i, r = 0;
+ int *a, i, r = 1;
a = kmalloc(1000 * sizeof(int), GFP_KERNEL);
BUG_ON(!a);
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-08 7:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 7:50 [patch 1/8] fix lib/sort regression test domen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®