Messages in this thread Patch in this message | | | Date | Wed, 28 Jul 2021 23:24:49 -0700 | Subject | [PATCH 1/3] libperf: Prefer exit(EXIT_SUCCESS) over exit(0) | From | Ian Rogers <> |
| |
Change exit code to be more intention revealing.
Signed-off-by: Ian Rogers <irogers@google.com> --- tools/lib/perf/tests/test-evlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/perf/tests/test-evlist.c b/tools/lib/perf/tests/test-evlist.c index c67c83399170..eceacd4b014c 100644 --- a/tools/lib/perf/tests/test-evlist.c +++ b/tools/lib/perf/tests/test-evlist.c @@ -251,7 +251,7 @@ static int test_mmap_thread(void) for (i = 0; i < 100; i++) prctl(0, 0, 0, 0, 0); - exit(0); + exit(EXIT_SUCCESS); } threads = perf_thread_map__new_dummy(); -- 2.32.0.432.gabb21c7263-goog
| |