tests/pc8: Update to latest igt infrastructure
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 Aug 2013 20:03:30 +0000 (22:03 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 Aug 2013 20:26:32 +0000 (22:26 +0200)
commit57e573ecc1c53b3aafe6ac4784069d79bd73107d
tree92a7769fe78bbfb754563a1624c4e34045bed0e5
parentc158128de5541f67543ea7fcb2404bc06e5d8fa3
tests/pc8: Update to latest igt infrastructure

- Use igt_require for magic SKIP results while still printing results
  for all subtests.

- Wrap setup/teardown code outside of subtests with igt_fixture. This
  will ensure that the so wrapped code isn't run when an
  igt_require/igt_assert failed (and we're essentially just printing
  the SKIP/FAIL result for all subtests) or when just enumerating
  subtests.

- Use igt_exit. Otherwise SKIP/FAIL results of subtests won't be propagated
  correctly.

- igt_subtest checks should be run unconditionally to make sure we
  always enumerate the same set of subtests. A bit on the line here
  since this is a subtest hidden behind a runtime flag.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/pc8.c