mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
lib/drmtest: Add drmtest_subtest_block macro
Doesn't do more than an if (drmtest_run_test(name)) right now, but as soon as we get a bit of infrastructure to handle test failures and skipping, this will get more interesting. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -220,10 +220,10 @@ int main(int argc, char **argv)
|
||||
drm_intel_bufmgr_gem_set_vma_cache_size(bufmgr, 32);
|
||||
batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd));
|
||||
|
||||
if (drmtest_run_subtest("normal"))
|
||||
drmtest_subtest_block("normal")
|
||||
run_test(count);
|
||||
|
||||
if (drmtest_run_subtest("interruptible")) {
|
||||
drmtest_subtest_block("interruptible") {
|
||||
drmtest_fork_signal_helper();
|
||||
run_test(count);
|
||||
drmtest_stop_signal_helper();
|
||||
|
||||
Reference in New Issue
Block a user