From 02c0d20fa87aaad4b791407e4eb3eaf4d6079de6 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 26 Aug 2013 21:16:37 +0200 Subject: [PATCH] lib/drmtest: restore in_fixture assert I didn't really want to revert those, too ... Signed-off-by: Daniel Vetter --- lib/drmtest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/drmtest.c b/lib/drmtest.c index ed249f96..e1522b70 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -654,6 +654,8 @@ static enum { bool __igt_fixture(void) { + assert(!in_fixture); + if (igt_only_list_subtests()) return false; @@ -666,11 +668,15 @@ bool __igt_fixture(void) void __igt_fixture_complete(void) { + assert(in_fixture); + in_fixture = false; } void __igt_fixture_end(void) { + assert(in_fixture); + in_fixture = false; longjmp(igt_subtest_jmpbuf, 1); }