Răsfoiți Sursa

radix tree test suite: Run iteration tests for longer

If the -l flag is set, run the tests for 100 seconds each instead of
the normal 10 seconds.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: Rehas Sachdeva <aquannie@gmail.com>
Matthew Wilcox 8 ani în urmă
părinte
comite
c0cdbf819c
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      tools/testing/radix-tree/main.c

+ 2 - 2
tools/testing/radix-tree/main.c

@@ -365,8 +365,8 @@ int main(int argc, char **argv)
 	regression1_test();
 	regression1_test();
 	regression2_test();
 	regression2_test();
 	regression3_test();
 	regression3_test();
-	iteration_test(0, 10);
-	iteration_test(7, 20);
+	iteration_test(0, 10 + 90 * long_run);
+	iteration_test(7, 10 + 90 * long_run);
 	single_thread_tests(long_run);
 	single_thread_tests(long_run);
 
 
 	/* Free any remaining preallocated nodes */
 	/* Free any remaining preallocated nodes */