test: fix unused function warning

exit_cb_unexpected() is only used on Windows.
This commit is contained in:
Ben Noordhuis 2012-06-29 02:32:48 +02:00
parent 13747033f8
commit f90d428b29

View File

@ -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;
@ -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;