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 2fc711d..d58e4dc 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 7a0a462..033de05 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 ae9a790..35a3426 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 eb8acb7..2ed7ad3 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 b5cf717..b1fa754 100644 (file)
@@ -154,5 +154,6 @@ static int testcases(void)
 
 int main(void)
 {
+       test_harness_set_timeout(300);
        return test_harness(testcases, "memcmp");
 }