tests/pc8: Fail harder
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Oct 2013 17:55:56 +0000 (19:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Oct 2013 17:59:03 +0000 (19:59 +0200)
commitae599546fadb3b8ebc3114f8ab5b58cffc467952
tree3ae820d3838c2e2ddbf5dbb976910fad7ca9adb8
parent3dc91f32424191f28d7512014b2871e22b5a05b9
tests/pc8: Fail harder

If the test enviroment isn't properly set up we should fail the
testcase, since otherwise there's no way to make sure a feature
actually works.

To cut down on bug triaging time extract the basic test (which was
previously used to skip all subtests) into a "basic" subtest.

Also fail the test hard if the msr interface isn't available. And
switch all other check in setup_enviroment to igt_require.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69838
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/pc8.c