test: spawn failures are reported by setting the exit code to -1

This commit is contained in:
Bert Belder 2012-08-13 22:11:50 +02:00
parent 3f1f11f338
commit 80eae82104

View File

@ -65,7 +65,7 @@ static void exit_cb_failure_expected(uv_process_t* process, int exit_status,
int term_signal) {
printf("exit_cb\n");
exit_cb_called++;
ASSERT(exit_status == 127);
ASSERT(exit_status == -1);
ASSERT(term_signal == 0);
uv_close((uv_handle_t*)process, close_cb);
}