summaryrefslogtreecommitdiff
path: root/test/parallel/test-cwd-enoent-repl.js
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-05-18 01:20:25 +0200
committerAnna Henningsen <anna@addaleax.net>2018-06-06 19:44:11 +0200
commit229dca3dee552f448dc9026237625ed58e8acfdc (patch)
tree3d463874affcf1303318882fb2f9961f5aec7cca /test/parallel/test-cwd-enoent-repl.js
parentd1c096cc9d88a865094b91ef86b771cd23d8bfe7 (diff)
downloadandroid-node-v8-229dca3dee552f448dc9026237625ed58e8acfdc.tar.gz
android-node-v8-229dca3dee552f448dc9026237625ed58e8acfdc.tar.bz2
android-node-v8-229dca3dee552f448dc9026237625ed58e8acfdc.zip
test,tools: enable running tests under workers
Enable running tests inside workers by passing `--worker` to `tools/test.py`. A number of tests are marked as skipped, or have been slightly altered to fit the different environment. PR-URL: https://github.com/nodejs/node/pull/20876 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'test/parallel/test-cwd-enoent-repl.js')
-rw-r--r--test/parallel/test-cwd-enoent-repl.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-cwd-enoent-repl.js b/test/parallel/test-cwd-enoent-repl.js
index d42679d868..5ea8abc7e4 100644
--- a/test/parallel/test-cwd-enoent-repl.js
+++ b/test/parallel/test-cwd-enoent-repl.js
@@ -3,6 +3,8 @@ const common = require('../common');
// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX.
if (common.isSunOS || common.isWindows || common.isAIX)
common.skip('cannot rmdir current working directory');
+if (!common.isMainThread)
+ common.skip('process.chdir is not available in Workers');
const assert = require('assert');
const fs = require('fs');