summaryrefslogtreecommitdiff
path: root/tools/perf/lib/tests/test-cpumap.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2019-10-17 13:59:16 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-10-19 21:35:01 +0300
commit301a89f8cf628316eea6c768787a836b63a83439 (patch)
tree08b7719ce192a7908e28f410e248b7b7b7e5819b /tools/perf/lib/tests/test-cpumap.c
parent37ac1bbdc31a2007f398b7caf0cbe522f1af9c6c (diff)
downloadlinux-301a89f8cf628316eea6c768787a836b63a83439.tar.xz
libperf: Keep count of failed tests
Keep the count of failed tests, so we get better output with failures, like: # make tests ... running static: - running test-cpumap.c...OK - running test-threadmap.c...OK - running test-evlist.c...FAILED test-evlist.c:53 failed to create evsel2 FAILED test-evlist.c:163 failed to create evsel2 FAILED test-evlist.c:287 failed count FAILED (3) - running test-evsel.c...OK running dynamic: - running test-cpumap.c...OK - running test-threadmap.c...OK - running test-evlist.c...FAILED test-evlist.c:53 failed to create evsel2 FAILED test-evlist.c:163 failed to create evsel2 FAILED test-evlist.c:287 failed count FAILED (3) - running test-evsel.c...OK ... Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lore.kernel.org/lkml/20191017105918.20873-9-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/lib/tests/test-cpumap.c')
-rw-r--r--tools/perf/lib/tests/test-cpumap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/lib/tests/test-cpumap.c b/tools/perf/lib/tests/test-cpumap.c
index aa34c20df07e..c8d45091e7c2 100644
--- a/tools/perf/lib/tests/test-cpumap.c
+++ b/tools/perf/lib/tests/test-cpumap.c
@@ -26,6 +26,6 @@ int main(int argc, char **argv)
perf_cpu_map__put(cpus);
perf_cpu_map__put(cpus);
- __T_OK;
+ __T_END;
return 0;
}