aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/sync/sync_test.c
diff options
context:
space:
mode:
authorEmilio López <emilio.lopez@collabora.co.uk>2016-10-19 09:49:52 -0300
committerShuah Khan <shuahkh@osg.samsung.com>2016-12-01 18:13:19 -0700
commit54b519f32ccd663ca8ee48d43c448271230d3670 (patch)
tree673ef4b7850c96c24e05f2a1a2acb75fcfe99282 /tools/testing/selftests/sync/sync_test.c
parentfdba7cffc32b22afb8070a433c091448b519923f (diff)
downloadkernel_replicant_linux-54b519f32ccd663ca8ee48d43c448271230d3670.tar.gz
kernel_replicant_linux-54b519f32ccd663ca8ee48d43c448271230d3670.tar.bz2
kernel_replicant_linux-54b519f32ccd663ca8ee48d43c448271230d3670.zip
selftest: sync: stress test for parallelism
This test is based on the libsync test suite from Android. This commit includes a stress test that invokes operations in parallel. Signed-off-by: Emilio López <emilio.lopez@collabora.co.uk> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/sync/sync_test.c')
-rw-r--r--tools/testing/selftests/sync/sync_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/sync/sync_test.c b/tools/testing/selftests/sync/sync_test.c
index eab5ceb7b571..3bb1024315e6 100644
--- a/tools/testing/selftests/sync/sync_test.c
+++ b/tools/testing/selftests/sync/sync_test.c
@@ -66,6 +66,7 @@ int main(void)
err += RUN_TEST(test_fence_one_timeline_merge);
err += RUN_TEST(test_fence_merge_same_fence);
err += RUN_TEST(test_fence_multi_timeline_wait);
+ err += RUN_TEST(test_stress_two_threads_shared_timeline);
if (err)
printf("[FAIL]\tsync errors: %d\n", err);