Skip to content

Commit a8edf1a

Browse files
Trottruyadorno
authored andcommittedMar 20, 2021
test: add known_issues test for #13683
Add a known_issues test for a known Windows issue. Refs: #13683 PR-URL: #37744 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 4487483 commit a8edf1a

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
 

‎test/known_issues/known_issues.status

+16
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,32 @@ test-vm-timeout-escape-queuemicrotask: SKIP
1515
[$system==win32]
1616

1717
[$system==linux]
18+
# Windows-specific test
19+
test-path-posix-relative-on-windows: SKIP
1820

1921
[$system==macos]
22+
# Windows-specific test
23+
test-path-posix-relative-on-windows: SKIP
2024

2125
[$system==solaris]
26+
# Windows-specific test
27+
test-path-posix-relative-on-windows: SKIP
2228

2329
[$system==freebsd]
30+
# Windows-specific test
31+
test-path-posix-relative-on-windows: SKIP
2432

2533
[$system==aix]
34+
# Windows-specific test
35+
test-path-posix-relative-on-windows: SKIP
2636

2737
[$arch==arm]
2838
# The Raspberry Pis are too slow to run this test.
2939
# See https://github.com/nodejs/build/issues/2227#issuecomment-608334574
3040
test-crypto-authenticated-stream: SKIP
41+
# Windows-specific test
42+
test-path-posix-relative-on-windows: SKIP
43+
44+
[$system==ibmi]
45+
# Windows-specific test
46+
test-path-posix-relative-on-windows: SKIP
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
3+
require('../common');
4+
const assert = require('assert');
5+
const path = require('path');
6+
7+
// Refs: https://github.com/nodejs/node/issues/13683
8+
9+
const relativePath = path.posix.relative('a/b/c', '../../x');
10+
assert.match(relativePath, /^(\.\.\/){3,5}x$/);

0 commit comments

Comments
 (0)
Please sign in to comment.