Skip to content

Commit

Permalink
added test case for unwrap function
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed May 31, 2024
1 parent a8fb8d1 commit 185ae12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/gotcha_unit_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ START_TEST(symbol_wrap_test) {
}
tools = get_tool_list();
ck_assert_msg((tools == NULL), "tools should not exists");
ck_assert_msg(gotcha_unwrap("internal_test_tool") == GOTCHA_SUCCESS,
"should be able to unwrap 'internal_test_tool' tool");
int y = simpleFunc();
ck_assert_msg((y == TESTING_LIB_RET_VAL), "no wrapping should occur");
}
END_TEST

Expand Down

0 comments on commit 185ae12

Please sign in to comment.