lib/drmtest: add igt_subtest_name and use it in kms_flip

Useful when the testname is constructed with igt_subtest_f.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-08-14 18:03:09 +02:00
parent b3880d3a96
commit 15c19229f4
3 changed files with 13 additions and 15 deletions
+5
View File
@@ -739,6 +739,11 @@ bool __igt_run_subtest(const char *subtest_name)
}
}
const char *igt_subtest_name(void)
{
return in_subtest;
}
bool igt_only_list_subtests(void)
{
return list_subtests;
+1
View File
@@ -121,6 +121,7 @@ bool __igt_run_subtest(const char *subtest_name);
#define igt_subtest(name) for (; __igt_run_subtest((name)) && \
(setjmp(igt_subtest_jmpbuf) == 0); \
igt_success())
const char *igt_subtest_name(void);
bool igt_only_list_subtests(void);
/**
* igt_skip - subtest aware test skipping