summaryrefslogtreecommitdiff
path: root/tests/gem_flink_race.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_flink_race.c')
-rw-r--r--tests/gem_flink_race.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gem_flink_race.c b/tests/gem_flink_race.c
index 6ef15f36..889cb1be 100644
--- a/tests/gem_flink_race.c
+++ b/tests/gem_flink_race.c
@@ -56,12 +56,13 @@ static int get_object_count(void)
FILE *file;
int scanned, ret;
- igt_drop_caches_set(DROP_RETIRE);
+ igt_drop_caches_set(DROP_RETIRE | DROP_ACTIVE);
file = igt_debugfs_fopen("i915_gem_objects", "r");
scanned = fscanf(file, "%i objects", &ret);
igt_assert_eq(scanned, 1);
+ igt_debug("Reports %d objects\n", ret);
return ret;
}
@@ -165,6 +166,7 @@ static void test_flink_close(void)
* up the counts */
fake = drm_open_any();
+ gem_quiescent_gpu(fake);
obj_count = get_object_count();
num_threads = sysconf(_SC_NPROCESSORS_ONLN);
@@ -190,6 +192,7 @@ static void test_flink_close(void)
close(fd);
+ gem_quiescent_gpu(fake);
obj_count = get_object_count() - obj_count;
igt_info("leaked %i objects\n", obj_count);