From c1e8697d37e51b247897ba7271d0ee89e29a900b Mon Sep 17 00:00:00 2001 From: artikell <739609084@qq.com> Date: Sun, 19 May 2024 20:18:29 +0800 Subject: [PATCH] resolve numtests counter error --- src/unit/test_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit/test_main.c b/src/unit/test_main.c index 38d2504304..2ce46175bd 100644 --- a/src/unit/test_main.c +++ b/src/unit/test_main.c @@ -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;