test: skip the unsupported test cases for IBM i

This is a following PR of #30714.

PR-URL: https://github.com/nodejs/node/pull/30819
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Xu Meng 2019-12-06 01:08:57 -06:00 committed by Ruben Bridgewater
parent 8baee5e311
commit 262c66a851
No known key found for this signature in database
GPG key ID: F07496B3EB3C1762
29 changed files with 108 additions and 21 deletions

View file

@ -76,8 +76,9 @@ noEntSocketClient.on('error', common.mustCall(function(err) {
}));
// On Windows or when running as root, a chmod has no effect on named pipes
if (!common.isWindows && process.getuid() !== 0) {
// On Windows or IBMi or when running as root,
// a chmod has no effect on named pipes
if (!common.isWindows && !common.isIBMi && process.getuid() !== 0) {
// Trying to connect to a socket one has no access to should result in EACCES
const accessServer = net.createServer(
common.mustNotCall('server callback should not run'));