summaryrefslogtreecommitdiff
path: root/tests/gem_pread_after_blit.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 09:04:24 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 11:10:26 +0200
commit9f6365e4eacc7aa07fc3f9524500d1e217b61bb5 (patch)
tree1592d8b751616a705e2a5e4b9729b8baf4604f66 /tests/gem_pread_after_blit.c
parent40ea6f4ea89dbf5a326677ea9482cc48743d2543 (diff)
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>
Diffstat (limited to 'tests/gem_pread_after_blit.c')
-rw-r--r--tests/gem_pread_after_blit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/gem_pread_after_blit.c b/tests/gem_pread_after_blit.c
index 55caa98d..7375000a 100644
--- a/tests/gem_pread_after_blit.c
+++ b/tests/gem_pread_after_blit.c
@@ -190,37 +190,37 @@ main(int argc, char **argv)
dst[0] = drm_intel_bo_alloc(bufmgr, "dst bo", size, 4096);
dst[1] = drm_intel_bo_alloc(bufmgr, "dst bo", size, 4096);
- if (drmtest_run_subtest("normal"))
+ drmtest_subtest_block("normal")
do_test(fd, -1, src, start, dst, 1);
- if (drmtest_run_subtest("interruptible")) {
+ drmtest_subtest_block("interruptible") {
drmtest_fork_signal_helper();
do_test(fd, -1, src, start, dst, 100);
drmtest_stop_signal_helper();
}
- if (drmtest_run_subtest("normal-uncached"))
+ drmtest_subtest_block("normal-uncached")
do_test(fd, 0, src, start, dst, 1);
- if (drmtest_run_subtest("interruptible-uncached")) {
+ drmtest_subtest_block("interruptible-uncached") {
drmtest_fork_signal_helper();
do_test(fd, 0, src, start, dst, 100);
drmtest_stop_signal_helper();
}
- if (drmtest_run_subtest("normal-snoop"))
+ drmtest_subtest_block("normal-snoop")
do_test(fd, 1, src, start, dst, 1);
- if (drmtest_run_subtest("interruptible-snoop")) {
+ drmtest_subtest_block("interruptible-snoop") {
drmtest_fork_signal_helper();
do_test(fd, 1, src, start, dst, 100);
drmtest_stop_signal_helper();
}
- if (drmtest_run_subtest("normal-display"))
+ drmtest_subtest_block("normal-display")
do_test(fd, 2, src, start, dst, 1);
- if (drmtest_run_subtest("interruptible-display")) {
+ drmtest_subtest_block("interruptible-display") {
drmtest_fork_signal_helper();
do_test(fd, 2, src, start, dst, 100);
drmtest_stop_signal_helper();