From 9f6365e4eacc7aa07fc3f9524500d1e217b61bb5 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 12 Aug 2013 09:04:24 +0200 Subject: 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 --- lib/drmtest.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/drmtest.h b/lib/drmtest.h index 773beaa75..ada8e81c5 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -95,6 +95,7 @@ void drmtest_progress(const char *header, uint64_t i, uint64_t total); /* subtest infrastructure */ void drmtest_subtest_init(int argc, char **argv); bool drmtest_run_subtest(const char *subtest_name); +#define drmtest_subtest_block(name) if (drmtest_run_subtest((name))) bool drmtest_only_list_subtests(void); /* helpers to automatically reduce test runtime in simulation */ -- cgit v1.2.3