summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/gem_persistent_relocs.c2
-rw-r--r--tests/gem_reloc_vs_gpu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_persistent_relocs.c b/tests/gem_persistent_relocs.c
index 29b19ed18..34d8492da 100644
--- a/tests/gem_persistent_relocs.c
+++ b/tests/gem_persistent_relocs.c
@@ -289,7 +289,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(),
diff --git a/tests/gem_reloc_vs_gpu.c b/tests/gem_reloc_vs_gpu.c
index ae7b446fb..bbfdc3ae8 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(),