perf test: Fixup error reporting in basic mmap test
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Dec 2012 17:58:42 +0000 (14:58 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Dec 2012 17:58:42 +0000 (14:58 -0300)
commitc5d3d50da2e32441d65d63ac27a67197998668c5
treeee6838b064599e0484749e360fd6a74c5d179da3
parent7be5ebe8767eaa482e18f566de5f56c1519abf59
perf test: Fixup error reporting in basic mmap test

In two cases this test could detect an error, bail out but return zero.
Fix it by reporting -1 for failure.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-tjhs9v6nqpofmxv3gs5lnu2c@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/mmap-basic.c