mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
60dd1838e9
commit
e28e873fb6
29 files changed
+108
-21
No files matched your search
@@ -31,10 +31,14 @@ const errorMessagesByPlatform = {
|
||||
darwin: ['file too short'],
|
||||
aix: ['Cannot load module',
|
||||
'Cannot run a file that does not have a valid format.',
|
||||
'Exec format error']
|
||||
'Exec format error'],
|
||||
ibmi: ['Cannot load module',
|
||||
'The module has too many section headers',
|
||||
'or the file has been truncated.'],
|
||||
};
|
||||
// If we don't know a priori what the error would be, we accept anything.
|
||||
const errorMessages = errorMessagesByPlatform[process.platform] || [''];
|
||||
const platform = common.isIBMi ? 'ibmi' : process.platform;
|
||||
const errorMessages = errorMessagesByPlatform[platform] || [''];
|
||||
|
||||
// On Windows, error messages are MUI dependent
|
||||
// Ref: https://github.com/nodejs/node/issues/13376
|
||||
|
||||
Reference in new issue
Block a user