From: Daniel Vetter Date: Wed, 11 Sep 2013 11:59:18 +0000 (+0200) Subject: tests/gem_reloc_vs_gpu: some fixes X-Git-Tag: intel-gpu-tools-1.4~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dc424f70d34add563ed86875d6167ab16a7a764;p=profile%2Fextras%2Fintel-gpu-tools.git tests/gem_reloc_vs_gpu: some fixes - Clear the igt_helper_process struct to avoid hitting asserts. - Fix up the logic for enumerating forked processes. Signed-off-by: Daniel Vetter --- diff --git a/tests/gem_reloc_vs_gpu.c b/tests/gem_reloc_vs_gpu.c index 8c28cbc..cab726e 100644 --- a/tests/gem_reloc_vs_gpu.c +++ b/tests/gem_reloc_vs_gpu.c @@ -281,7 +281,7 @@ static void do_test(int fd, bool faulting_reloc) static void do_forked_test(int fd, unsigned flags) { int num_threads = sysconf(_SC_NPROCESSORS_ONLN); - struct igt_helper_process thrasher; + struct igt_helper_process thrasher = {}; if (flags & (THRASH | THRASH_INACTIVE)) { char fname[FILENAME_MAX]; @@ -364,7 +364,7 @@ int main(int argc, char **argv) flags & INTERRUPT ? "-interruptible" : "", flags & FAULTING ? "-faulting-reloc" : "", flags & THRASH ? "-thrashing" : "", - flags & THRASH ? "-thrash-inactive" : "") + flags & THRASH_INACTIVE ? "-thrash-inactive" : "") do_forked_test(fd, flags); }