test-threadmap.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) | test-threadmap.c (bba2ea17ef553aea0df80cb64399fe2f70f225dd) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <stdarg.h> 3#include <stdio.h> 4#include <perf/threadmap.h> 5#include <internal/tests.h> 6 7static int libperf_print(enum libperf_print_level level, 8 const char *fmt, va_list ap) --- 13 unchanged lines hidden (view full) --- 22 if (!threads) 23 return -1; 24 25 perf_thread_map__get(threads); 26 perf_thread_map__put(threads); 27 perf_thread_map__put(threads); 28 29 __T_END; | 1// SPDX-License-Identifier: GPL-2.0 2#include <stdarg.h> 3#include <stdio.h> 4#include <perf/threadmap.h> 5#include <internal/tests.h> 6 7static int libperf_print(enum libperf_print_level level, 8 const char *fmt, va_list ap) --- 13 unchanged lines hidden (view full) --- 22 if (!threads) 23 return -1; 24 25 perf_thread_map__get(threads); 26 perf_thread_map__put(threads); 27 perf_thread_map__put(threads); 28 29 __T_END; |
30 return 0; | 30 return tests_failed == 0 ? 0 : -1; |
31} | 31} |