aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-require-long-path.js
diff options
context:
space:
mode:
authorRafaƂ Pocztarski <r.pocztarski@gmail.com>2015-12-02 18:13:27 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2015-12-07 12:10:24 +0100
commit19e06d71cfa26b6f8a1ce0fa566891553eb351b2 (patch)
tree5154e25fc606bd534041d950c1e6a5c9cdde5a7c /test/parallel/test-require-long-path.js
parent95dd890b322041101b57f5297e702acce665aef6 (diff)
downloadandroid-node-v8-19e06d71cfa26b6f8a1ce0fa566891553eb351b2.tar.gz
android-node-v8-19e06d71cfa26b6f8a1ce0fa566891553eb351b2.tar.bz2
android-node-v8-19e06d71cfa26b6f8a1ce0fa566891553eb351b2.zip
test: skip long path tests on non-Windows
If not running on Windows it skips the long path tests in: * test-fs-long-path.js * test-require-long-path.js Fixes: https://github.com/nodejs/node/issues/2255 PR-URL: https://github.com/nodejs/node/pull/4116 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Diffstat (limited to 'test/parallel/test-require-long-path.js')
-rw-r--r--test/parallel/test-require-long-path.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/parallel/test-require-long-path.js b/test/parallel/test-require-long-path.js
index 1f7e28cba2..c30a76a5a9 100644
--- a/test/parallel/test-require-long-path.js
+++ b/test/parallel/test-require-long-path.js
@@ -3,6 +3,11 @@ const common = require('../common');
const fs = require('fs');
const path = require('path');
+if (!common.isWindows) {
+ console.log('1..0 # Skipped: this test is Windows-specific.');
+ return;
+}
+
// make a path that is more than 260 chars long.
const dirNameLen = Math.max(260 - common.tmpDir.length, 1);
const dirName = path.join(common.tmpDir, 'x'.repeat(dirNameLen));