Skip to content

Commit

Permalink
test: fix test-ipc spawn_helper exit_cb
Browse files Browse the repository at this point in the history
Make sure an ipc test fails if `term_signal` is not zero. This can
happen on failing assertions in the child process.

PR-URL: libuv#2108
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
santigimeno committed Jan 15, 2019
1 parent 8570005 commit 0c9586a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test-ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ static void exit_cb(uv_process_t* process,
printf("exit_cb\n");
exit_cb_called++;
ASSERT(exit_status == 0);
ASSERT(term_signal == 0);
uv_close((uv_handle_t*)process, NULL);
}

Expand Down

0 comments on commit 0c9586a

Please sign in to comment.