diff options
| author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-05-04 14:26:22 +0300 |
|---|---|---|
| committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-05-05 15:29:44 +0300 |
| commit | 2caa386a222f27d346871e09d55bb5fbb15ee6ee (patch) | |
| tree | e766db7048253081ff8c73565cd2b1a90430e60a | |
| parent | 57e041880397a493ace7afe2b0db0427f950950a (diff) | |
lib/igt_core: Disallow nesting of igt_dynamic inside igt_dynamic
igt_dynamic is allowed only inside igt_subtest_with_dynamic
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
| -rw-r--r-- | lib/igt_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c index 96af7492..f8ccc8d2 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -1280,6 +1280,8 @@ bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name) { internal_assert(in_subtest && _igt_dynamic_tests_executed >= 0, "igt_dynamic is allowed only inside igt_subtest_with_dynamic\n"); + internal_assert(!in_dynamic_subtest, + "igt_dynamic is not allowed to be nested in another igt_dynamic\n"); if (!valid_name_for_subtest(dynamic_subtest_name)) { igt_critical("Invalid dynamic subtest name \"%s\".\n", |
