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: skip tests failing when run under root · nodejs/node@155a999

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-fs-mkdtempDisposableSync.js
    • test-fs-promises-mkdtempDisposable.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-fs-mkdtempDisposableSync.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if (isMainThread) {
6868

6969
// Errors from cleanup are thrown
7070
// It is difficult to arrange for rmdir to fail on windows
71-
if (!common.isWindows) {
71+
if (!common.isWindows && process.getuid() !== 0) {
7272
const base = fs.mkdtempDisposableSync(tmpdir.resolve('foo.'));
7373

7474
// On Unix we can prevent removal by making the parent directory read-only
Collapse file

‎test/parallel/test-fs-promises-mkdtempDisposable.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-promises-mkdtempDisposable.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function chdirDoesNotAffectRemoval() {
6868

6969
async function errorsAreReThrown() {
7070
// It is difficult to arrange for rmdir to fail on windows
71-
if (common.isWindows) return;
71+
if (common.isWindows || process.getuid() === 0) return;
7272
const base = await fsPromises.mkdtempDisposable(tmpdir.resolve('foo.'));
7373

7474
// On Unix we can prevent removal by making the parent directory read-only

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.