tests/gem_tiled_partial_pwrite_pread: convert to subtest infrastructure

This commit is contained in:
Daniel Vetter
2012-11-28 13:25:12 +01:00
parent b0066d3659
commit df11a6f31d
2 changed files with 9 additions and 4 deletions
+8 -3
View File
@@ -276,6 +276,8 @@ int main(int argc, char **argv)
{
uint32_t tiling_mode = I915_TILING_X;
drmtest_subtest_init(argc, argv);
srandom(0xdeadbeef);
fd = drm_open_any();
@@ -300,11 +302,14 @@ int main(int argc, char **argv)
drmtest_init_aperture_trashers(bufmgr);
mappable_gtt_limit = gem_mappable_aperture_size();
test_partial_reads();
if (drmtest_run_subtest("reads"))
test_partial_reads();
test_partial_writes();
if (drmtest_run_subtest("writes"))
test_partial_writes();
test_partial_read_writes();
if (drmtest_run_subtest("writes-after-reads"))
test_partial_read_writes();
drmtest_cleanup_aperture_trashers();
drm_intel_bufmgr_destroy(bufmgr);