aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/amdgpu/deadlock_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/amdgpu/deadlock_tests.c b/tests/amdgpu/deadlock_tests.c
index cd34cdf6..9a428858 100644
--- a/tests/amdgpu/deadlock_tests.c
+++ b/tests/amdgpu/deadlock_tests.c
@@ -230,7 +230,7 @@ static void amdgpu_deadlock_helper(unsigned ip_type)
230 230
231 for (i = 0; i < 200; i++) { 231 for (i = 0; i < 200; i++) {
232 r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1); 232 r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1);
233 CU_ASSERT_EQUAL(r, 0); 233 CU_ASSERT_EQUAL((r == 0 || r == -ECANCELED), 1);
234 234
235 } 235 }
236 236
@@ -243,7 +243,7 @@ static void amdgpu_deadlock_helper(unsigned ip_type)
243 243
244 r = amdgpu_cs_query_fence_status(&fence_status, 244 r = amdgpu_cs_query_fence_status(&fence_status,
245 AMDGPU_TIMEOUT_INFINITE,0, &expired); 245 AMDGPU_TIMEOUT_INFINITE,0, &expired);
246 CU_ASSERT_EQUAL(r, 0); 246 CU_ASSERT_EQUAL((r == 0 || r == -ECANCELED), 1);
247 247
248 r = amdgpu_bo_list_destroy(bo_list); 248 r = amdgpu_bo_list_destroy(bo_list);
249 CU_ASSERT_EQUAL(r, 0); 249 CU_ASSERT_EQUAL(r, 0);