Skip to content
Permalink
Browse files

test: allow for absent nobody user in setuid test

Some isolated build or test VMs don't have a "nobody" user, causing the
parallel/test-process-setuid-setgid test to fail. Add logic to allow for
that situation.

PR-URL: #13112
Fixes: #13071
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information...
Trott authored and jasnell committed May 19, 2017
1 parent 72429b3 commit 1af8b70c57f51755ecd211997f24d7266365c1ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-process-setuid-setgid.js
@@ -51,7 +51,7 @@ if (process.getuid() !== 0) {

assert.throws(
() => { process.setuid('nobody'); },
/^Error: EPERM, /
/^Error: (EPERM, .+|setuid user id does not exist)$/
);
return;
}

0 comments on commit 1af8b70

Please sign in to comment.
You can’t perform that action at this time.