Skip to content

Commit

Permalink
Resolve numtests counter error (#514)
Browse files Browse the repository at this point in the history
When supporting test, a type error was found

Signed-off-by: artikell <739609084@qq.com>
  • Loading branch information
artikell committed May 19, 2024
1 parent efa8ba5 commit dcc9fd4
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 dcc9fd4

Please sign in to comment.