lib/drmtest: Add drmtest_subtest_block macro

Doesn't do more than an if (drmtest_run_test(name)) right now, but
as soon as we get a bit of infrastructure to handle test failures and
skipping, this will get more interesting.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-08-12 09:04:24 +02:00
parent 40ea6f4ea8
commit 9f6365e4ea
30 changed files with 123 additions and 118 deletions
+2 -2
View File
@@ -222,9 +222,9 @@ int main(int argc, char **argv)
{
drmtest_subtest_init(argc, argv);
if (drmtest_run_subtest("normal"))
drmtest_subtest_block("normal")
run(OBJECT_SIZE);
if (drmtest_run_subtest("no-prefault")) {
drmtest_subtest_block("no-prefault") {
drmtest_disable_prefault();
run(OBJECT_SIZE);
drmtest_enable_prefault();