mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-12 00:43:04 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user