Skip to content

Commit 496ca19

Browse files
committed
Consider skipped tests as successful
1 parent fbac571 commit 496ca19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/TestSuite.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ TestSuite_RunTest (TestSuite *suite, /* IN */
414414
struct timespec ts3;
415415
char name[MAX_TEST_NAME_LENGTH];
416416
char buf[MAX_TEST_NAME_LENGTH + 500];
417-
int status;
417+
int status = 0;
418418

419419
snprintf (name, sizeof name, "%s%s", suite->name, test->name);
420420
name [sizeof name - 1] = '\0';
@@ -482,6 +482,7 @@ TestSuite_RunTest (TestSuite *suite, /* IN */
482482
}
483483
Mutex_Unlock (mutex);
484484
} else {
485+
status = 0;
485486
Mutex_Lock (mutex);
486487
snprintf (buf, sizeof buf,
487488
" { \"status\": \"SKIP\", \"name\": \"%s\" },\n",

0 commit comments

Comments
 (0)