libperf tests: If a test fails return non-zero
[linux-2.6-microblaze.git] / tools / lib / perf / tests / test-cpumap.c
index c8d4509..c70e9e0 100644 (file)
@@ -27,5 +27,5 @@ int main(int argc, char **argv)
        perf_cpu_map__put(cpus);
 
        __T_END;
-       return 0;
+       return tests_failed == 0 ? 0 : -1;
 }