igt/gem_userptr_blits: Fix multi-threaded mm stress tester
authorTvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Tue, 22 Jul 2014 10:14:51 +0000 (11:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Jul 2014 08:31:31 +0000 (09:31 +0100)
commit8b3ded404c25bf23221e3b5ff2cc873107185781
treef8853c2d5a375c712596e3dc36b2040a4f73877f
parent700bdf1401f1596d25024fd1038e782708bf39e5
igt/gem_userptr_blits: Fix multi-threaded mm stress tester

Two parts to the fix:
  1. Do not use pthread_cancel since not available on Android.
  2. Do not assert in the thread since that does not get propagated
     to the process. Rather pass out any failures so we know test
     did not work as expected.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Tim Gore <tim.gore@intel.com>
Reviewed-by: Tim Gore <tim.gore@intel.com>
tests/gem_userptr_blits.c