From 4599b6a0f27fa6a0bc49f93f2bc211ae7c61acf2 Mon Sep 17 00:00:00 2001 From: Livia Medeiros Date: Wed, 14 Oct 2026 02:55:52 +0800 Subject: [PATCH] test: skip test failing when run under root Signed-off-by: LiviaMedeiros PR-URL: https://github.com/nodejs/node/pull/66666 Reviewed-By: Xuguang Mei Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca --- test/parallel/test-fs-rmSync-special-char-additional-error.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-fs-rmSync-special-char-additional-error.js b/test/parallel/test-fs-rmSync-special-char-additional-error.js index 9b4de3c84d6..51e925cdc9b 100644 --- a/test/parallel/test-fs-rmSync-special-char-additional-error.js +++ b/test/parallel/test-fs-rmSync-special-char-additional-error.js @@ -6,6 +6,9 @@ const fs = require('node:fs'); const path = require('node:path'); const { execSync } = require('child_process'); +if (!common.isWindows && process.getuid() === 0) + common.skip('running this test as root would ignore directory permissions'); + tmpdir.refresh(); // Prepare a clean temporary directory function countOccurrences(haystack, needle) {