diff options
author | Antonio Argenziano <antonio.argenziano@intel.com> | 2018-04-11 15:32:09 -0700 |
---|---|---|
committer | Antonio Argenziano <antonio.argenziano@intel.com> | 2018-04-12 07:34:08 -0700 |
commit | 051642792613ce2f68ca08d5eb578c5ba3a4f895 (patch) | |
tree | 504860c476e77b7529dba0108a9cad175b6ade13 | |
parent | d502f055ac4500cada758876a512ac4f14b34851 (diff) |
tests/gem_close_race: Wait for work to complete before terminating test
When running a single subtest, outstanding work might hang after the test
ends therefore escaping detection by the hang_detector.
v2:
- Update commit message. (Chris)
Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/gem_close_race.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_close_race.c b/tests/gem_close_race.c index bc1127b1..11d626dc 100644 --- a/tests/gem_close_race.c +++ b/tests/gem_close_race.c @@ -148,6 +148,8 @@ static void process(int child) handle = load(fd); if ((child & 63) == 63) gem_read(fd, handle, 0, &handle, sizeof(handle)); + + gem_quiescent_gpu(fd); } struct crashme { @@ -203,6 +205,8 @@ static void threads(int timeout) } timer_delete(timer); + + gem_quiescent_gpu(fd); close(fd); } |