Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix running child-process-uid-gid as root #8794

Closed
wants to merge 28 commits into from
Closed
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4d18e7c
test: fix running child-process-uid-gid as root
geek Sep 24, 2016
44e72e7
test: cleanup vars to const and '==' to '==='
oogz Sep 21, 2016
a203a39
test: add expectWarning to common
targos Sep 17, 2016
21abef2
benchmark: add benchmark for destructuring object
fundon Sep 21, 2016
308fc8f
src: rename handle__ to handle_ in HandleWrap
danbev Sep 22, 2016
b8b90bb
src: fix minor typo in comments
danbev Sep 23, 2016
7e87d31
doc: fix example in stream doc
lpinca Sep 2, 2016
4a5c721
test: skip cpu-intensive tests on slow hosts
Trott Sep 19, 2016
159d3c6
tools: enable more remark-lint rules
ChALkeR Sep 20, 2016
c61b985
http: socket connection timeout for http request
reneweb Aug 31, 2016
2c0200b
doc,tool: add ref to Integer
yorkie Sep 23, 2016
c5b0ddc
deps: upgrade openssl sources to 1.0.2j
shigeki Sep 26, 2016
d009582
deps: copy all openssl header files to include dir
shigeki Sep 26, 2016
45eb220
deps: fix openssl assembly error on ia32 win32
indutny Jan 8, 2014
060728f
deps: fix asm build error of openssl in x86_win32
Feb 13, 2015
017af20
openssl: fix keypress requirement in apps on win32
Feb 17, 2015
08266b8
deps: add -no_rand_screen to openssl s_client
May 27, 2015
2a95704
test: accept expected AIX result test-stdio-closed
Trott Sep 23, 2016
5eb6472
util: Add format for SharedArrayBuffer
yosuke-furukawa Sep 17, 2016
307199d
benchmark: add --expose_internals switch
bzoz Sep 16, 2016
17a1cc3
benchmark: make v8-bench.js output consistent
bzoz Sep 16, 2016
278e619
benchmark: use 'yes' instead of echo in a loop
bzoz Sep 22, 2016
30d940a
doc: improve child_process doc types
yorkie Sep 23, 2016
0f53d9c
test: use Buffer.alloc
Sep 23, 2016
f991fb9
inspector: build file cleanup
Sep 23, 2016
ff3b361
doc,tool: add tls.TLSSocket to typeMap
yorkie Sep 23, 2016
03a5ba9
lint
geek Sep 30, 2016
6429d42
Merge branch 'master' of github.com:nodejs/node into test-spawn-fix
geek Sep 30, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/parallel/test-child-process-uid-gid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;

if (process.getuid() === 0) {
common.skip('as this test should not be run as `root`');
return;
}

const expectedError = common.isWindows ? /\bENOTSUP\b/ : /\bEPERM\b/;

assert.throws(() => {
Expand Down