GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: fix on zfs build host · nodejs/node@5e1d565

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-fileurltopathbuffer.js
    • test-fs-readdir-ucs2.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-fileurltopathbuffer.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fileurltopathbuffer.js
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ assert.throws(() => writeFileSync(testPath, 'test'), {
5555
name: 'URIError',
5656
});
5757

58-
writeFileSync(testPathBuffer, 'test');
58+
59+
try {
60+
writeFileSync(testPathBuffer, 'test');
61+
} catch (e) {
62+
// ZFS with utf8only=on (default) rejects non-UTF-8 file names
63+
if (e.code === 'EILSEQ')
64+
common.skip('test requires filesystem that accepts non-UTF-8 names');
65+
throw e;
66+
}
5967
assert.ok(existsSync(testPathBuffer));
6068

6169
// Using fileURLToPath fails because the URL contains non-Unicode
Collapse file

‎test/parallel/test-fs-readdir-ucs2.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-readdir-ucs2.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const fullpath = Buffer.concat([root, filebuff]);
1818
try {
1919
fs.closeSync(fs.openSync(fullpath, 'w+'));
2020
} catch (e) {
21-
if (e.code === 'EINVAL')
21+
// EILSEQ: ZFS with utf8only=on (default) rejects non-UTF-8 file names
22+
if (e.code === 'EINVAL' || e.code === 'EILSEQ')
2223
common.skip('test requires filesystem that supports UCS2');
2324
throw e;
2425
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.