(env, cb)
| 35 | const fixtures = require('../common/fixtures'); |
| 36 | |
| 37 | function test(env, cb) { |
| 38 | const filename = fixtures.path('test-fs-readfile-error.js'); |
| 39 | exec(...common.escapePOSIXShell`"${process.execPath}" "${filename}"`, common.mustCall((err, stdout, stderr) => { |
| 40 | assert(err); |
| 41 | assert.strictEqual(stdout, ''); |
| 42 | assert.notStrictEqual(stderr, ''); |
| 43 | cb(String(stderr)); |
| 44 | })); |
| 45 | } |
| 46 | |
| 47 | test({ NODE_DEBUG: '' }, common.mustCall((data) => { |
| 48 | assert.match(data, /EISDIR/); |