Resolve numtests counter error (#514)
When supporting test, a type error was found Signed-off-by: artikell <739609084@qq.com>
This commit is contained in:
parent
efa8ba519b
commit
dcc9fd4fe8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user