Browse files

test: fix unused function warning

exit_cb_unexpected() is only used on Windows.
  • Loading branch information...
1 parent 1374703 commit f90d428b2962ecd30dcd31ef802517c51fd77337 @bnoordhuis bnoordhuis committed Jun 29, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 test/test-spawn.c
View
14 test/test-spawn.c
@@ -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;

0 comments on commit f90d428

Please sign in to comment.