]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
radix tree test suite: Run iteration tests for longer
authorMatthew Wilcox <mawilcox@microsoft.com>
Sun, 29 Jan 2017 07:27:24 +0000 (02:27 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 14 Feb 2017 02:44:08 +0000 (21:44 -0500)
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>
tools/testing/radix-tree/main.c

index 86de448b699e5b73c81b53af0009a2160b5b8fae..b829127d56705747a0a74c73e8b11b8cae8ecc27 100644 (file)
@@ -365,8 +365,8 @@ int main(int argc, char **argv)
        regression1_test();
        regression2_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);
 
        /* Free any remaining preallocated nodes */