test: use RETURN_SKIP in spawn_setuid_setgid test

PR-URL: https://github.com/libuv/libuv/pull/1021
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Reviewed-By: Imran Iqbal <imran@imraniqbal.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Santiago Gimeno 2016-08-29 11:29:28 +02:00 committed by Imran Iqbal
parent 5d96277834
commit 897738b160
No known key found for this signature in database
GPG Key ID: D59249252F8EC41A

View File

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