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