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: add support for NODE_TEST_DIR on a separate mount point · nodejs/node@0108ff6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-fs-copyfile.js
    • test-fs-error-messages.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-fs-copyfile.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-copyfile.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ try {
6464
} catch (err) {
6565
assert.strictEqual(err.syscall, 'copyfile');
6666
assert(err.code === 'ENOTSUP' || err.code === 'ENOTTY' ||
67-
err.code === 'ENOSYS');
67+
err.code === 'ENOSYS' || err.code === 'EXDEV');
6868
assert.strictEqual(err.path, src);
6969
assert.strictEqual(err.dest, dest);
7070
}
Collapse file

‎test/parallel/test-fs-error-messages.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-error-messages.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,11 @@ function re(literals, ...values) {
303303
`ENOTEMPTY: directory not empty, rename '${existingDir}' -> ` +
304304
`'${existingDir2}'`);
305305
assert.strictEqual(err.errno, uv.UV_ENOTEMPTY);
306+
} else if (err.code === 'EXDEV') { // not on the same mounted filesystem
307+
assert.strictEqual(
308+
err.message,
309+
`EXDEV: cross-device link not permitted, rename '${existingDir}' -> ` +
310+
`'${existingDir2}'`);
306311
} else if (err.code === 'EEXIST') { // smartos and aix
307312
assert.strictEqual(
308313
err.message,

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.