mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 14:56:18 +00:00
lib/drmtest: documentation for igt_fixture
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
15c19229f4
commit
696c8f6434
@ -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() */
|
||||
|
Loading…
x
Reference in New Issue
Block a user