libtracefs: Move follow events test after iterate raw events test
PATCH 1/1 libtracefs: Move follow events test after iterate raw events test
From: "Steven Rostedt (Google)" <[email protected]>
The iterate raw events test tests error paths. On is passing in no callbacks. But the code was changed where if there are follow events attached to an instance that it is OK not to have a callback attached. This means that the test of the follow events must be after the iterate test, otherwise passing in a NULL callback will succeed, making the test fail.
Move the follow events test after the iterate test.
Signed-off-by Steven Rostedt (Google) <[email protected]>
--- utest/tracefs-utest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
utest/tracefs-utest.c +4 -1
@@ -2342,7 +2342,6 @@ void test_tracefs_lib(void) }CU_add_test (suite,"Test tracefs/debugfs mounting" , test_mounting); -CU_add_test (suite,"Follow events" , test_follow_events);CU_add_test (suite,"trace cpu read" , test_trace_cpu_read); CU_add_test(suite, "trace cpu pipe",
@@ -2359,6 +2358,10 @@ void test_tracefs_lib(void) test_system_event);CU_add_test (suite,"tracefs_iterate_raw_events API" , test_iter_raw_events); + +/* Follow events test must be after the iterate raw events above */ +CU_add_test (suite,"Follow events" , test_follow_events); +CU_add_test (suite,"tracefs_tracers API" , test_tracers); CU_add_test(suite, "tracefs_local events API",
Signature · 1 line
2.35.1