Skip to content

Commit 3e09dcf

Browse files
Imran IqbalFishrock123
Imran Iqbal
authored andcommitted
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: #2909 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 8f6f291 commit 3e09dcf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/parallel/test-cwd-enoent-preload.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const assert = require('assert');
44
const fs = require('fs');
55
const spawn = require('child_process').spawn;
66

7-
// Fails with EINVAL on SmartOS, EBUSY on Windows.
8-
if (process.platform === 'sunos' || common.isWindows) {
7+
// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX.
8+
if (process.platform === 'sunos' || common.isWindows || common.isAix) {
99
console.log('1..0 # Skipped: cannot rmdir current working directory');
1010
return;
1111
}

test/parallel/test-cwd-enoent-repl.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var assert = require('assert');
44
var fs = require('fs');
55
var spawn = require('child_process').spawn;
66

7-
// Fails with EINVAL on SmartOS, EBUSY on Windows.
8-
if (process.platform === 'sunos' || common.isWindows) {
7+
// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX.
8+
if (process.platform === 'sunos' || common.isWindows || common.isAix) {
99
console.log('1..0 # Skipped: cannot rmdir current working directory');
1010
return;
1111
}

test/parallel/test-cwd-enoent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var assert = require('assert');
44
var fs = require('fs');
55
var spawn = require('child_process').spawn;
66

7-
// Fails with EINVAL on SmartOS, EBUSY on Windows.
8-
if (process.platform === 'sunos' || common.isWindows) {
7+
// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX.
8+
if (process.platform === 'sunos' || common.isWindows || common.isAix) {
99
console.log('1..0 # Skipped: cannot rmdir current working directory');
1010
return;
1111
}

0 commit comments

Comments
 (0)