diff --git a/docs/src/process.rst b/docs/src/process.rst index 0ef96b99..a535e8f1 100644 --- a/docs/src/process.rst +++ b/docs/src/process.rst @@ -240,6 +240,8 @@ Public members This is not supported on Windows, :c:func:`uv_spawn` will fail and set the error to ``UV_ENOTSUP``. + .. versionadded:: 2.0.0 + .. c:member:: char* uv_process_options_t.cpumask .. c:member:: size_t uv_process_options_t.cpumask_size diff --git a/test/test-spawn.c b/test/test-spawn.c index 46c8f659..d972c53c 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -1506,10 +1506,8 @@ TEST_IMPL(spawn_setgids) { /* if not root, then this will fail. */ uv_uid_t uid = getuid(); - if (uid != 0) { - fprintf(stderr, "spawn_setgids skipped: not root\n"); - return 0; - } + if (uid != 0) + RETURN_SKIP("spawn_setgids skipped: not root\n"); init_process_options("spawn_helper1", exit_cb);