diff options
author | Oscar Mateo <oscar.mateo@intel.com> | 2013-11-04 16:30:46 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-11-04 18:05:31 +0100 |
commit | a97402e89ac492e2cbdd4b194638a7c0e898a4a3 (patch) | |
tree | 71cfe8fb08f18b368aed65737d8889b000ea617e /tests/gem_reloc_vs_gpu.c | |
parent | 163d85d5f0c4e8dfecb93c3a01c7f90da744aa79 (diff) |
tests: Fix "-thrashing" and "-thrash-inactive" distinction
A typo in the relocation tests made both sub-tests perform the
same action: drop *all* caches.
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_reloc_vs_gpu.c')
-rw-r--r-- | tests/gem_reloc_vs_gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_reloc_vs_gpu.c b/tests/gem_reloc_vs_gpu.c index ae7b446f..bbfdc3ae 100644 --- a/tests/gem_reloc_vs_gpu.c +++ b/tests/gem_reloc_vs_gpu.c @@ -284,7 +284,7 @@ static void do_forked_test(int fd, unsigned flags) if (flags & (THRASH | THRASH_INACTIVE)) { char fname[FILENAME_MAX]; int drop_caches_fd; - const char *data = THRASH_INACTIVE ? "0xf" : "0x7"; + const char *data = (flags & THRASH_INACTIVE) ? "0x7" : "0xf"; snprintf(fname, FILENAME_MAX, "%s/%i/%s", "/sys/kernel/debug/dri", drm_get_card(), |