Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
test: fix unused function warning
exit_cb_unexpected() is only used on Windows.
  • Loading branch information
bnoordhuis committed Jun 29, 2012
1 parent 1374703 commit f90d428
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/test-spawn.c
Expand Up @@ -71,12 +71,6 @@ static void exit_cb_failure_expected(uv_process_t* process, int exit_status,
}


static void exit_cb_unexpected(uv_process_t* process, int exit_status,
int term_signal) {
ASSERT(0 && "should not have been called");
}


static void kill_cb(uv_process_t* process, int exit_status, int term_signal) {
uv_err_t err;

Expand Down Expand Up @@ -804,6 +798,14 @@ TEST_IMPL(spawn_setgid_fails) {


#ifdef _WIN32

static void exit_cb_unexpected(uv_process_t* process,
int exit_status,
int term_signal) {
ASSERT(0 && "should not have been called");
}


TEST_IMPL(spawn_setuid_fails) {
int r;

Expand Down

0 comments on commit f90d428

Please sign in to comment.