summaryrefslogtreecommitdiff
path: root/lib/igt_core.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-11-25 14:10:04 +0000
committerThomas Wood <thomas.wood@intel.com>2014-11-25 15:18:48 +0000
commitdbac905600c37f180618e6b4467cafbb6c3f8f2a (patch)
tree3beacb8a7826f5005f933545c04cf0368b178cab /lib/igt_core.c
parent3bebf3dd011cb7acf280d4deb02723718149a99c (diff)
lib: ensure subtests are not added to simple tests
Simple tests do not support subtests, so fail if igt_subtest is used in one. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/igt_core.c')
-rw-r--r--lib/igt_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c
index b937f43e..3fd45952 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -672,6 +672,7 @@ bool __igt_run_subtest(const char *subtest_name)
{
assert(!in_subtest);
assert(!in_fixture);
+ assert(test_with_subtests);
if (list_subtests) {
printf("%s\n", subtest_name);