Skip to content

Commit

Permalink
fix wrong array size calculation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
happyCoder92 committed Oct 4, 2023
1 parent 9c468c9 commit f602030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/broken.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TEST_CASE(broken_errno_out_of_range) {
" %s(65536) { write }\n"
"} USE broken DEFAULT KILL";
const char* actions[] = {"ERRNO", "TRAP", "TRACE"};
for (size_t i = 0; i < sizeof(actions) / sizeof(actions); ++i) {
for (size_t i = 0; i < sizeof(actions) / sizeof(actions[0]); ++i) {
sprintf(policy, policy_template, actions[i]);
TEST_COMPILE_ERROR(policy);
}
Expand Down

0 comments on commit f602030

Please sign in to comment.