Skip to content

Commit cf40d7d

Browse files
committed
disable test expected to fail
1 parent 6e05e8d commit cf40d7d

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

test/parallel/test-fs-cp.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ if (!isWindows && !isInsideCWDWithUnusualChars) {
654654
}
655655

656656
// It returns an error if attempt is made to copy socket.
657-
if (!isWindows) {
657+
if (!isWindows && !isInsideCWDWithUnusualChars) {
658658
const src = nextdir();
659659
mkdirSync(src);
660660
const dest = nextdir();

test/parallel/test-startup-empty-regexp-statics.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
'use strict';
22

33
const common = require('../common');
4+
5+
if (common.isInsideCWDWithUnusualChars) {
6+
common.skip('expected failure');
7+
}
8+
49
const assert = require('node:assert');
510
const { spawnSync, spawn } = require('node:child_process');
611

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
// We must load the CJS version here because the ESM wrapper call `hasIPv6`
22
// which compiles a RegEx.
33
// eslint-disable-next-line node-core/require-common-first
4-
import '../common/index.js';
4+
import common from '../common/index.js';
55
import assert from 'node:assert';
66

7-
assert.strictEqual(RegExp.$_, '');
8-
assert.strictEqual(RegExp.$0, undefined);
9-
assert.strictEqual(RegExp.$1, '');
10-
assert.strictEqual(RegExp.$2, '');
11-
assert.strictEqual(RegExp.$3, '');
12-
assert.strictEqual(RegExp.$4, '');
13-
assert.strictEqual(RegExp.$5, '');
14-
assert.strictEqual(RegExp.$6, '');
15-
assert.strictEqual(RegExp.$7, '');
16-
assert.strictEqual(RegExp.$8, '');
17-
assert.strictEqual(RegExp.$9, '');
18-
assert.strictEqual(RegExp.input, '');
19-
assert.strictEqual(RegExp.lastMatch, '');
20-
assert.strictEqual(RegExp.lastParen, '');
21-
assert.strictEqual(RegExp.leftContext, '');
22-
assert.strictEqual(RegExp.rightContext, '');
23-
assert.strictEqual(RegExp['$&'], '');
24-
assert.strictEqual(RegExp['$`'], '');
25-
assert.strictEqual(RegExp['$+'], '');
26-
assert.strictEqual(RegExp["$'"], '');
7+
if (!common.isInsideCWDWithUnusualChars) {
8+
assert.strictEqual(RegExp.$_, '');
9+
assert.strictEqual(RegExp.$0, undefined);
10+
assert.strictEqual(RegExp.$1, '');
11+
assert.strictEqual(RegExp.$2, '');
12+
assert.strictEqual(RegExp.$3, '');
13+
assert.strictEqual(RegExp.$4, '');
14+
assert.strictEqual(RegExp.$5, '');
15+
assert.strictEqual(RegExp.$6, '');
16+
assert.strictEqual(RegExp.$7, '');
17+
assert.strictEqual(RegExp.$8, '');
18+
assert.strictEqual(RegExp.$9, '');
19+
assert.strictEqual(RegExp.input, '');
20+
assert.strictEqual(RegExp.lastMatch, '');
21+
assert.strictEqual(RegExp.lastParen, '');
22+
assert.strictEqual(RegExp.leftContext, '');
23+
assert.strictEqual(RegExp.rightContext, '');
24+
assert.strictEqual(RegExp['$&'], '');
25+
assert.strictEqual(RegExp['$`'], '');
26+
assert.strictEqual(RegExp['$+'], '');
27+
assert.strictEqual(RegExp["$'"], '');
28+
}

0 commit comments

Comments
 (0)