Chris Wilson b918a3ba15 Reset errno to 0 after success
errno is only valid after a syscall wrapper (e.g. ioctl()) reports an
error. However, we report the last errno value as a part of the
igt_assert() output and so we display spurious values such as:

Test requirement not met in function gem_require_ring, file ioctl_wrappers.c:802:
Last errno: 11, Resource temporarily unavailable
Test requirement: (!((((intel_get_drm_devid(fd)) == 0x0102 || ...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-25 07:45:56 +01:00
..
2014-04-10 17:50:49 +03:00
2014-04-25 07:45:56 +01:00
2013-12-05 15:32:42 -08:00
2011-03-29 22:52:50 +02:00
2014-02-20 13:42:25 +00:00
2011-03-29 22:52:50 +02:00
2014-03-26 18:50:27 +01:00
2014-03-26 18:50:28 +01:00
2014-04-25 07:45:56 +01:00
2014-03-22 22:41:28 +01:00
2014-03-22 22:41:28 +01:00