summaryrefslogtreecommitdiff
path: root/tools/lib/perf/tests/test-evlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/perf/tests/test-evlist.c')
-rw-r--r--tools/lib/perf/tests/test-evlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/perf/tests/test-evlist.c b/tools/lib/perf/tests/test-evlist.c
index 1b225fe34a72..220a95be47c3 100644
--- a/tools/lib/perf/tests/test-evlist.c
+++ b/tools/lib/perf/tests/test-evlist.c
@@ -409,5 +409,5 @@ int main(int argc, char **argv)
test_mmap_cpus();
__T_END;
- return 0;
+ return tests_failed == 0 ? 0 : -1;
}