From 1cfee8ebcb27e1fdac1d0445a32c285a89f0c9ae Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Wed, 16 Sep 2015 11:36:55 -0400 Subject: [PATCH] test: update cwd-enoent tests for AIX On AIX you can not remove a directory that you are currently inside of as it results in an EBUSY error. "EBUSY: resource busy or locked". Updated the tests accordingly so that they are skipped on AIX. PR-URL: https://github.com/nodejs/node/pull/2909 Reviewed-By: Ben Noordhuis Reviewed-By: Michael Dawson --- test/parallel/test-cwd-enoent-preload.js | 4 ++-- test/parallel/test-cwd-enoent-repl.js | 4 ++-- test/parallel/test-cwd-enoent.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-cwd-enoent-preload.js b/test/parallel/test-cwd-enoent-preload.js index 2dde3f0764b0a4..7f11880ee0278a 100644 --- a/test/parallel/test-cwd-enoent-preload.js +++ b/test/parallel/test-cwd-enoent-preload.js @@ -4,8 +4,8 @@ const assert = require('assert'); const fs = require('fs'); const spawn = require('child_process').spawn; -// Fails with EINVAL on SmartOS, EBUSY on Windows. -if (process.platform === 'sunos' || common.isWindows) { +// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. +if (process.platform === 'sunos' || common.isWindows || common.isAix) { console.log('1..0 # Skipped: cannot rmdir current working directory'); return; } diff --git a/test/parallel/test-cwd-enoent-repl.js b/test/parallel/test-cwd-enoent-repl.js index e902dd6e64633f..82342ce64487a3 100644 --- a/test/parallel/test-cwd-enoent-repl.js +++ b/test/parallel/test-cwd-enoent-repl.js @@ -4,8 +4,8 @@ var assert = require('assert'); var fs = require('fs'); var spawn = require('child_process').spawn; -// Fails with EINVAL on SmartOS, EBUSY on Windows. -if (process.platform === 'sunos' || common.isWindows) { +// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. +if (process.platform === 'sunos' || common.isWindows || common.isAix) { console.log('1..0 # Skipped: cannot rmdir current working directory'); return; } diff --git a/test/parallel/test-cwd-enoent.js b/test/parallel/test-cwd-enoent.js index ebb62c1768aba3..c6b3925ce3baa3 100644 --- a/test/parallel/test-cwd-enoent.js +++ b/test/parallel/test-cwd-enoent.js @@ -4,8 +4,8 @@ var assert = require('assert'); var fs = require('fs'); var spawn = require('child_process').spawn; -// Fails with EINVAL on SmartOS, EBUSY on Windows. -if (process.platform === 'sunos' || common.isWindows) { +// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. +if (process.platform === 'sunos' || common.isWindows || common.isAix) { console.log('1..0 # Skipped: cannot rmdir current working directory'); return; }