Skip to content

Commit

Permalink
test: profile: fixed warning
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Dec 17, 2024
1 parent 8a64932 commit 9b06297
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static void test_profile()
TEST_CHECK(cprof != NULL);

/* create profile */
profile = cprof_profile_create(cprof);
profile = cprof_profile_create();
TEST_CHECK(profile != NULL);

cprof_sample_type_str_create(profile, "CPU time", "ns", CPROF_AGGREGATION_TEMPORALITY_CUMULATIVE);
Expand Down Expand Up @@ -154,6 +154,8 @@ static void test_profile()

print_profile(profile);

cprof_profile_destroy(profile);

/* destroy context */
cprof_destroy(cprof);
}
Expand Down

0 comments on commit 9b06297

Please sign in to comment.