summaryrefslogtreecommitdiff
path: root/tests/gem_exec_bad_domains.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_exec_bad_domains.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_exec_bad_domains.c')
-rw-r--r--tests/gem_exec_bad_domains.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/gem_exec_bad_domains.c b/tests/gem_exec_bad_domains.c
index d1743493a..53c33fd06 100644
--- a/tests/gem_exec_bad_domains.c
+++ b/tests/gem_exec_bad_domains.c
@@ -166,7 +166,7 @@ int main(int argc, char **argv)
tmp = drm_intel_bo_alloc(bufmgr, "tmp", 128 * 128, 4096);
- if (drmtest_run_subtest("cpu-domain")) {
+ drmtest_subtest_block("cpu-domain") {
BEGIN_BATCH(2);
OUT_BATCH(0);
OUT_RELOC(tmp, I915_GEM_DOMAIN_CPU, 0, 0);
@@ -188,7 +188,7 @@ int main(int argc, char **argv)
}
}
- if (drmtest_run_subtest("gtt-domain")) {
+ drmtest_subtest_block("gtt-domain") {
BEGIN_BATCH(2);
OUT_BATCH(0);
OUT_RELOC(tmp, I915_GEM_DOMAIN_GTT, 0, 0);
@@ -212,7 +212,7 @@ int main(int argc, char **argv)
#if 0 /* kernel checks have been eased, doesn't reject conflicting write domains
any more */
- if (drmtest_run_subtest("conflicting-write-domain")) {
+ drmtest_subtest_block("conflicting-write-domain") {
BEGIN_BATCH(4);
OUT_BATCH(0);
OUT_RELOC(tmp, I915_GEM_DOMAIN_RENDER,
@@ -229,10 +229,10 @@ int main(int argc, char **argv)
}
#endif
- if (drmtest_run_subtest("double-write-domain"))
+ drmtest_subtest_block("double-write-domain")
multi_write_domain(fd);
- if (drmtest_run_subtest("invalid-gpu-domain")) {
+ drmtest_subtest_block("invalid-gpu-domain") {
BEGIN_BATCH(2);
OUT_BATCH(0);
OUT_RELOC(tmp, ~(I915_GEM_GPU_DOMAINS | I915_GEM_DOMAIN_GTT | I915_GEM_DOMAIN_CPU),