Daniel Vetter
8f5387eb99
tests: introduce igt_require
...
Since igt_skip has funny control flow we can abuse it and make it work
like a special kind of assert which automatically skips tests if a
requirement fails.
Note that in places where we have a less strict test which should
always succeed (e.g. ioctl works or isn't available) the igt_assert
should be place before the igt_require with the more strict
requirements. Otherwise we'll skip a test instead of properly failing
it.
Convert a few users of igt_skip over to igt_require to showcase its
use.
v2: s/gem_check_/gem_require_/ so that we consistently use "require"
to indicate magic check that can call igt_skip. Imo hiding the
igt_require for feature checks is ok, but for more traditional assert
like use cases an explicit igt_require might be better.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-13 15:15:18 +02:00
..
2013-08-12 19:51:40 +02:00
2012-04-10 16:23:18 +02:00
2013-05-10 15:26:42 +01:00
2013-07-01 18:54:40 +02:00
2013-07-01 18:54:40 +02:00
2013-07-01 18:54:40 +02:00
2013-08-13 15:07:44 +02:00
2013-07-21 22:04:20 -07:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:18 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:18 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:18 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:18 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:18 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-12 12:20:22 +02:00
2013-08-12 12:20:22 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:18 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2012-09-18 14:06:14 +01:00
2012-08-08 08:51:55 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:15:17 +02:00
2013-08-13 15:07:44 +02:00
2013-08-12 12:20:22 +02:00
2013-07-25 21:51:53 +02:00
2012-05-31 15:58:29 +02:00
2013-08-13 15:07:44 +02:00
2013-08-13 15:07:44 +02:00
2012-12-20 11:02:19 +01:00
2012-01-24 11:28:25 +01:00
2013-08-13 15:07:44 +02:00
2012-01-24 10:50:10 +01:00
2013-07-21 22:04:20 -07:00
2012-01-15 16:05:43 +01:00
2013-07-03 08:17:18 +01:00