* [KJ] [patch 1/1] fix lib/sort regression test
@ 2005-03-30 4:59 Daniel Dickman
0 siblings, 0 replies; only message in thread
From: Daniel Dickman @ 2005-03-30 4:59 UTC (permalink / raw)
To: kernel-janitors
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>
--- linux-2.6.11-rc1/lib/sort.c 2005-03-29 23:44:19.921875000 -0500
+++ linux/lib/sort.c 2005-03-29 23:56:40.421875000 -0500
@@ -90,7 +90,7 @@
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);
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-30 4:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-30 4:59 [KJ] [patch 1/1] fix lib/sort regression test Daniel Dickman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.