summaryrefslogtreecommitdiff
path: root/lib/drmtest.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-14 18:30:03 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-14 18:30:03 +0200
commit696c8f6434c7ec8db64f88125d4a7b31afd130bf (patch)
treefb28f7f5bc9187468227f728597d1fa72dd84d45 /lib/drmtest.h
parent15c19229f404bcd04f90517925614d5716258057 (diff)
lib/drmtest: documentation for igt_fixture
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r--lib/drmtest.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 79cac57b..d246b7d1 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -175,6 +175,14 @@ void igt_exit(void) __attribute__((noreturn));
*/
#define igt_require(expr) do { if (!(expr)) __igt_skip_check(__FILE__, __LINE__, __func__, #expr ); } while (0)
+/**
+ * igt_fixture - annote global test fixture code
+ *
+ * Testcase with subtests often need to set up a bunch of global state as the
+ * common test fixture. To avoid such code interferring with the subtest
+ * enumeration (e.g. when enumerating on systemes without an intel gpu) such
+ * blocks should be annotated with igt_fixture.
+ */
#define igt_fixture if (!igt_only_list_subtests())
/* check functions which auto-skip tests by calling igt_skip() */