Skip to content

Commit

Permalink
resolve numtests counter error
Browse files Browse the repository at this point in the history
  • Loading branch information
artikell committed May 19, 2024
1 parent efa8ba5 commit c1e8697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit/test_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ int main(int argc, char **argv) {
}
}

int numtests = sizeof(unitTestSuite)/sizeof(struct unitTest);
int numtests = sizeof(unitTestSuite)/sizeof(struct unitTestSuite);
int failed_num = 0, suites_executed = 0;
for (int j = 0; j < numtests; j++) {
if (file && strcasecmp(file, unitTestSuite[j].filename)) continue;
Expand Down

0 comments on commit c1e8697

Please sign in to comment.