respond to code review feedback

* added versionadded
* use RETURN_SKIP
This commit is contained in:
Joe Dollard 2016-09-01 21:14:50 -04:00 committed by Jameson Nash
parent b9f08fbd50
commit 9b66266aef
2 changed files with 4 additions and 4 deletions

View File

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

View File

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