tests/gem_lut_handle: Quit when we hit ENOSPC
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 Jun 2013 18:58:57 +0000 (19:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 Jun 2013 18:41:52 +0000 (19:41 +0100)
commitebfd01908f787876040a679fc7895828b23d268d
tree99780191f624b1f2f7594003918b49ff1357abcd
parent60e3930987134ff855cb24dd1021eb5225b18857
tests/gem_lut_handle: Quit when we hit ENOSPC

I'd been working under the falsehood that we would always generate an
error for an invalid reloc->target_handle before reserving any object.
However, only the execlist is checked up front for validity before
reservation so ENOSPC is a genuine error condition raised by the test.
Fix it so that we stop reporting that limit as a test failure.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65391
tests/gem_lut_handle.c