Skip to content

Commit c56271c

Browse files
pwhelanedsiper
authored andcommitted
tests/out_kinesis: do not stop if unable start to avoid calling pthread_join on an invalid tid.
Signed-off-by: Phillip Adair Stewart Whelan <[email protected]>
1 parent 92f31cd commit c56271c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/runtime/out_kinesis.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ void flb_test_kinesis_invalid_port(void)
289289
ret = flb_start(ctx);
290290
TEST_CHECK(ret != 0); // Expect failure
291291

292-
flb_stop(ctx);
292+
if (ret == 0) {
293+
flb_stop(ctx);
294+
}
293295
flb_destroy(ctx);
294296
}
295297

0 commit comments

Comments
 (0)