respond to code review feedback
* added versionadded * use RETURN_SKIP
This commit is contained in:
parent
b9f08fbd50
commit
9b66266aef
@ -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
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user