lkml.org 
[lkml]   [2021]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH v2 17/22] perf test: Convert time to tsc test to test case.
From
Migration toward kunit style test cases.

Signed-off-by: Ian Rogers <irogers@google.com>
---
tools/perf/tests/perf-time-to-tsc.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tools/perf/tests/perf-time-to-tsc.c b/tools/perf/tests/perf-time-to-tsc.c
index d23740f80c7d..594013e94ed0 100644
--- a/tools/perf/tests/perf-time-to-tsc.c
+++ b/tools/perf/tests/perf-time-to-tsc.c
@@ -198,8 +198,13 @@ static bool test__tsc_is_supported(void)
#endif
}

+static struct test_case perf_time_to_tsc_tests[] = {
+ TEST_CASE("Convert perf time to TSC", perf_time_to_tsc),
+ { .name = NULL, }
+};
+
struct test_suite suite__perf_time_to_tsc = {
.desc = "Convert perf time to TSC",
- .func = test__perf_time_to_tsc,
+ .test_cases = perf_time_to_tsc_tests,
.is_supported = test__tsc_is_supported,
};
--
2.33.0.882.g93a45727a2-goog
\
 
 \ /
  Last update: 2021-10-13 19:49    [W:0.140 / U:7.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site