Skip to content

Commit 76e6197

Browse files
committed
Fix warnings in test driver
1 parent 2b074e6 commit 76e6197

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/test/src/test.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,12 @@ void* bake_test_run_suite_range(
193193

194194
char *test_name = ut_asprintf("%s.%s", suite->id, test->id);
195195
ut_proc proc;
196-
int8_t rc;
197-
int sig;
196+
int8_t rc = 0;
197+
int sig = 0;
198198
bool proc_fail = false;
199199

200+
memset(&proc, 0, sizeof(ut_proc));
201+
200202
if (prefix) {
201203
char *has_space = strchr(prefix, ' ');
202204
if (has_space) {
@@ -932,4 +934,4 @@ void test_quarantine(const char *date) {
932934
ut_log("#[yellow]SKIP#[reset]: %s.%s: test was quarantined on %s\n",
933935
current_testsuite->id, current_testcase->id, date);
934936
exit(0);
935-
}
937+
}

0 commit comments

Comments
 (0)