From 1f6fe2f3bdbae0ef74508d55911e1f93ed262bd6 Mon Sep 17 00:00:00 2001 From: SRAVANI GUNDEPALLI <88590399+sravani1510@users.noreply.github.com> Date: Tue, 15 Sep 2026 10:56:45 +0530 Subject: [PATCH] test: skip test-vfs-real-provider-watch.js on IBM i Signed-off-by: Gundepalli Sravani PR-URL: https://github.com/nodejs/node/pull/65987 Refs: https://github.com/nodejs/node/issues/52640 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- benchmark/fs/bench-watch-recursive.js | 5 +++++ test/parallel/test-vfs-real-provider-watch.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/benchmark/fs/bench-watch-recursive.js b/benchmark/fs/bench-watch-recursive.js index 45ed0871718..9fdb81d8304 100644 --- a/benchmark/fs/bench-watch-recursive.js +++ b/benchmark/fs/bench-watch-recursive.js @@ -4,6 +4,11 @@ // On Linux and other platforms without a native recursive watcher this is // implemented in JavaScript on top of per-directory watchers. +if (process.platform === 'os400') { + console.log('Skipping: IBMi does not support `fs.watch()`'); + process.exit(0); +} + const common = require('../common'); const fs = require('fs'); const path = require('path'); diff --git a/test/parallel/test-vfs-real-provider-watch.js b/test/parallel/test-vfs-real-provider-watch.js index f4218fa408e..056744c5fd0 100644 --- a/test/parallel/test-vfs-real-provider-watch.js +++ b/test/parallel/test-vfs-real-provider-watch.js @@ -4,6 +4,10 @@ // watch / promises.watch / watchFile through RealFSProvider. const common = require('../common'); + +if (common.isIBMi) + common.skip('IBMi does not support `fs.watch()`'); + const tmpdir = require('../common/tmpdir'); const assert = require('assert'); const fs = require('fs');