-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.freebsdIssues and PRs related to the FreeBSD platform.Issues and PRs related to the FreeBSD platform.
Description
Performing "make test" on the freshly-built node-7.4.0 I see the following:
=== release test-child-process-uid-gid ===
Path: parallel/test-child-process-uid-gid
assert.js:85
throw new assert.AssertionError({
^
AssertionError: Missing expected exception..
at _throws (assert.js:339:5)
at Function.throws (assert.js:363:3)
at Object.<anonymous> (/spare/usr/ports/www/node/work/node-v7.4.0/test/parallel/test-child-process-uid-gid.js:17:8)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
Command: out/Release/node /spare/usr/ports/www/node/work/node-v7.4.0/test/parallel/test-child-process-uid-gid.js
[01:30|% 92|+ 1216|- 1]: release testerSyncFolderItemsRequest.onSendError aMsg:Error during connecting to hostname 'mail.humedica.com'. Is the host down?. (STATUS_CONNECTING_TO)
[02:11|% 100|+ 1319|- 1]: Done
gmake[1]: *** [Makefile:126: test] Error 1
gmake[1]: Leaving directory '/spare/usr/ports/www/node/work/node-v7.4.0'
*** Error code 1
I am running the test as myself (not as root)... The failing snippet is:
assert.throws(() => {
spawn('echo', ['fhqwhgads'], {gid: 0});
}, expectedError);It fails, because my account belongs to group 0 (wheel). In fact, it is my only group. The test should be checking for such situations similarly to how it already checks for being run by uid 0.
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.freebsdIssues and PRs related to the FreeBSD platform.Issues and PRs related to the FreeBSD platform.