Browse Source

selftests/powerpc: Give some tests longer to run

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>
Michael Ellerman 7 years ago
parent
commit
d97e7f198b

+ 1 - 0
tools/testing/selftests/powerpc/benchmarks/futex_bench.c

@@ -38,5 +38,6 @@ int test_futex(void)
 
 int main(void)
 {
+	test_harness_set_timeout(300);
 	return test_harness(test_futex, "futex_bench");
 }

+ 2 - 0
tools/testing/selftests/powerpc/benchmarks/mmap_bench.c

@@ -84,5 +84,7 @@ int main(int argc, char *argv[])
 			exit(1);
 		}
 	}
+
+	test_harness_set_timeout(300);
 	return test_harness(test_mmap, "mmap_bench");
 }

+ 1 - 0
tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c

@@ -162,5 +162,6 @@ int instruction_count(void)
 
 int main(void)
 {
+	test_harness_set_timeout(300);
 	return test_harness(instruction_count, "instruction_count");
 }

+ 1 - 0
tools/testing/selftests/powerpc/pmu/ebb/lost_exception_test.c

@@ -98,5 +98,6 @@ static int lost_exception(void)
 
 int main(void)
 {
+	test_harness_set_timeout(300);
 	return test_harness(lost_exception, "lost_exception");
 }

+ 1 - 0
tools/testing/selftests/powerpc/stringloops/memcmp.c

@@ -154,5 +154,6 @@ static int testcases(void)
 
 int main(void)
 {
+	test_harness_set_timeout(300);
 	return test_harness(testcases, "memcmp");
 }