mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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 <ben@strongloop.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
1 parent
e4f2952341
commit
1cfee8ebcb
3 files changed
+6
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user