Skip to content
Browse files

test: fix module loading error for AIX 7.1

AIX 7.1 appears to return a different error message compared to AIX 6.1.

PR-URL: #25418
Reviewed-By: Beth Griggs <>
Reviewed-By: Gireesh Punathil <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: George Adams <>
Reviewed-By: Michael Dawson <>
  • Loading branch information...
richardlau authored and addaleax committed Jan 9, 2019
1 parent 3f66109 commit 82fc9a8889005287796613192de0ccfc3352a100
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/parallel/test-module-loading-error.js
@@ -30,7 +30,8 @@ const errorMessagesByPlatform = {
sunos: ['unknown file type', 'not an ELF file'],
darwin: ['file too short'],
aix: ['Cannot load module',
'Cannot run a file that does not have a valid format.']
'Cannot run a file that does not have a valid format.',
'Exec format error']
// If we don't know a priori what the error would be, we accept anything.
const errorMessages = errorMessagesByPlatform[process.platform] || [''];

0 comments on commit 82fc9a8

Please sign in to comment.
You can’t perform that action at this time.