selftests/powerpc: Give some tests longer to run
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Jul 2018 12:24:59 +0000 (22:24 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Aug 2018 11:49:26 +0000 (21:49 +1000)
Some of these long running tests can time out on heavily loaded
systems, give them longer to run.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/benchmarks/futex_bench.c
tools/testing/selftests/powerpc/benchmarks/mmap_bench.c
tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c
tools/testing/selftests/powerpc/pmu/ebb/lost_exception_test.c
tools/testing/selftests/powerpc/stringloops/memcmp.c

index 2fc711d9150d3b94627d7d9903ca37be15b8d273..d58e4dc50fcdd8ebd29af04b79c1c1e1cd613e6b 100644 (file)
@@ -38,5 +38,6 @@ int test_futex(void)
 
 int main(void)
 {
+       test_harness_set_timeout(300);
        return test_harness(test_futex, "futex_bench");
 }
index 7a0a462a22726361587567e724abf7306de6c90f..033de0560d99c4e7fc153b3c3f138f7554463a35 100644 (file)
@@ -84,5 +84,7 @@ int main(int argc, char *argv[])
                        exit(1);
                }
        }
+
+       test_harness_set_timeout(300);
        return test_harness(test_mmap, "mmap_bench");
 }
index ae9a7908611110e4d77fc22a8fe68be84222be2e..35a3426e341c7970fe48b917aae6a83f2da03f02 100644 (file)
@@ -162,5 +162,6 @@ int instruction_count(void)
 
 int main(void)
 {
+       test_harness_set_timeout(300);
        return test_harness(instruction_count, "instruction_count");
 }
index eb8acb78bc6c11b3f4f54eedcf0660b9ddc005b1..2ed7ad33f7a3b619ec9abd7eb996cb8a07aad979 100644 (file)
@@ -98,5 +98,6 @@ static int lost_exception(void)
 
 int main(void)
 {
+       test_harness_set_timeout(300);
        return test_harness(lost_exception, "lost_exception");
 }
index b5cf71727b2de07594db0c28ee8cc74ad1c7fdba..b1fa7546957f76a65b03f18f1622cbe3dbee4232 100644 (file)
@@ -154,5 +154,6 @@ static int testcases(void)
 
 int main(void)
 {
+       test_harness_set_timeout(300);
        return test_harness(testcases, "memcmp");
 }