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>
This commit is contained in:
Oscar Mateo 2013-11-04 16:30:46 +00:00 committed by Daniel Vetter
parent 163d85d5f0
commit a97402e89a
2 changed files with 2 additions and 2 deletions

View File

@ -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(),

View File

@ -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(),