Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e09dcf

Browse filesBrowse files
Imran IqbalFishrock123
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 <ben@strongloop.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 8f6f291 commit 3e09dcf
Copy full SHA for 3e09dcf

File tree

Expand file treeCollapse file tree

3 files changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-6
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent-preload.js
+2-2Lines changed: 2 additions & 2 deletions
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
}
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent-repl.js
+2-2Lines changed: 2 additions & 2 deletions
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
}
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.