From 897738b160cd5950503a96c9fd5b1e9aab92b0ff Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Mon, 29 Aug 2016 11:29:28 +0200 Subject: [PATCH] test: use RETURN_SKIP in spawn_setuid_setgid test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/libuv/libuv/pull/1021 Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Imran Iqbal Reviewed-By: Colin Ihrig --- test/test-spawn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test-spawn.c b/test/test-spawn.c index 0e84ad6d..5df12420 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -1230,8 +1230,7 @@ TEST_IMPL(spawn_setuid_setgid) { /* if not root, then this will fail. */ uv_uid_t uid = getuid(); if (uid != 0) { - fprintf(stderr, "spawn_setuid_setgid skipped: not root\n"); - return 0; + RETURN_SKIP("It should be run as root user"); } init_process_options("spawn_helper1", exit_cb);