mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
test: add known_issues test for #13683
Add a known_issues test for a known Windows issue. Refs: https://github.com/nodejs/node/issues/13683 PR-URL: https://github.com/nodejs/node/pull/37744 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
parent
4487483d9d
commit
a8edf1aafe
|
|
@ -15,16 +15,32 @@ test-vm-timeout-escape-queuemicrotask: SKIP
|
|||
[$system==win32]
|
||||
|
||||
[$system==linux]
|
||||
# Windows-specific test
|
||||
test-path-posix-relative-on-windows: SKIP
|
||||
|
||||
[$system==macos]
|
||||
# Windows-specific test
|
||||
test-path-posix-relative-on-windows: SKIP
|
||||
|
||||
[$system==solaris]
|
||||
# Windows-specific test
|
||||
test-path-posix-relative-on-windows: SKIP
|
||||
|
||||
[$system==freebsd]
|
||||
# Windows-specific test
|
||||
test-path-posix-relative-on-windows: SKIP
|
||||
|
||||
[$system==aix]
|
||||
# Windows-specific test
|
||||
test-path-posix-relative-on-windows: SKIP
|
||||
|
||||
[$arch==arm]
|
||||
# The Raspberry Pis are too slow to run this test.
|
||||
# See https://github.com/nodejs/build/issues/2227#issuecomment-608334574
|
||||
test-crypto-authenticated-stream: SKIP
|
||||
# Windows-specific test
|
||||
test-path-posix-relative-on-windows: SKIP
|
||||
|
||||
[$system==ibmi]
|
||||
# Windows-specific test
|
||||
test-path-posix-relative-on-windows: SKIP
|
||||
|
|
|
|||
10
test/known_issues/test-path-posix-relative-on-windows.js
Normal file
10
test/known_issues/test-path-posix-relative-on-windows.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
require('../common');
|
||||
const assert = require('assert');
|
||||
const path = require('path');
|
||||
|
||||
// Refs: https://github.com/nodejs/node/issues/13683
|
||||
|
||||
const relativePath = path.posix.relative('a/b/c', '../../x');
|
||||
assert.match(relativePath, /^(\.\.\/){3,5}x$/);
|
||||
Loading…
Reference in New Issue
Block a user