| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 042e858 commit 8724c44
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,14 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + const common = require('../common'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + const spawn = require('child_process').spawn; | ||
| 5 | + | ||
| 6 | + const expectedError = common.isWindows ? /\bENOTSUP\b/ : /\bEPERM\b/; | ||
| 7 | + | ||
| 8 | + assert.throws(() => { | ||
| 9 | + spawn('echo', ['fhqwhgads'], {uid: 0}); | ||
| 10 | + }, expectedError); | ||
| 11 | + | ||
| 12 | + assert.throws(() => { | ||
| 13 | + spawn('echo', ['fhqwhgads'], {gid: 0}); | ||
| 14 | + }, expectedError); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments