Skip to contentSkip to conversation

fix lib/sort regression test

PATCH New Daniel Dickman 1 participant 1 message Mar 30, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 <[email protected]>

lib/sort.c +1 -1
@@ -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
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors