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>
This commit is contained in:
Emilio López
2016-10-19 09:49:52 -03:00
committed by Shuah Khan
parent fdba7cffc3
commit 54b519f32c
4 changed files with 116 additions and 0 deletions

View File

@@ -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);