Resolve numtests counter error ()

When supporting test, a type error was found

Signed-off-by: artikell <739609084@qq.com>
This commit is contained in:
artikell 2024-05-20 01:48:28 +08:00 committed by GitHub
parent efa8ba519b
commit dcc9fd4fe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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;