Message ID | 20230607132710.4f642c78@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 8ec026f0fa13f3d97343af20049d34da0405e58f |
Headers | show |
Series | trace-cmd test: Close handle after opening | expand |
diff --git a/utest/tracecmd-utest.c b/utest/tracecmd-utest.c index 69dcb4be..34fed1e1 100644 --- a/utest/tracecmd-utest.c +++ b/utest/tracecmd-utest.c @@ -438,6 +438,8 @@ static void test_trace_library_read(void) ret = tracecmd_iterate_events(handle, NULL, 0, read_events, &data); CU_TEST(ret == 0); + tracecmd_close(handle); + CU_TEST(data.counter > 0); trace_seq_destroy(&data.seq); }