summaryrefslogtreecommitdiff
path: root/tools/perf/tests/keep-tracking.c
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2015-11-03 13:44:42 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-11-03 17:45:40 +0300
commit597bdeb4ab7396c43935eded15f82e3e100b3ff3 (patch)
tree289c61adebac5e14fde781cb31764409a514d6bf /tools/perf/tests/keep-tracking.c
parentbebd23a2ed31d47e7dd746d3b125068aa2c42d85 (diff)
downloadlinux-597bdeb4ab7396c43935eded15f82e3e100b3ff3.tar.xz
perf test: Keep test result clean if '-v' not set
According to [1], 'perf test' should avoid output too much information if '-v' is not set, only 'Ok', 'FAIL' or 'Skip' need to be printed. This patch removes several messages sent directly to stderr to make the output clean. Before this patch: # perf test dummy 23: Test using a dummy software event to keep tracking : (not supported) Ok After this patch: # perf test dummy 23: Test using a dummy software event to keep tracking : Skip [1] http://lkml.kernel.org/r/20151020134155.GE4400@redhat.com Signed-off-by: Wang Nan <wangnan0@huawei.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1446547486-229499-2-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/keep-tracking.c')
-rw-r--r--tools/perf/tests/keep-tracking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/keep-tracking.c b/tools/perf/tests/keep-tracking.c
index 4d4b9837b630..a2e2269aa093 100644
--- a/tools/perf/tests/keep-tracking.c
+++ b/tools/perf/tests/keep-tracking.c
@@ -90,8 +90,8 @@ int test__keep_tracking(void)
evsel->attr.enable_on_exec = 0;
if (perf_evlist__open(evlist) < 0) {
- fprintf(stderr, " (not supported)");
- err = 0;
+ pr_debug("Unable to open dummy and cycles event\n");
+ err = TEST_SKIP;
goto out_err;
}