Skip to content

Commit 82fc9a8

Browse files
richardlauaddaleax
authored andcommitted
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 <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: George Adams <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 3f66109 commit 82fc9a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-module-loading-error.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ const errorMessagesByPlatform = {
3030
sunos: ['unknown file type', 'not an ELF file'],
3131
darwin: ['file too short'],
3232
aix: ['Cannot load module',
33-
'Cannot run a file that does not have a valid format.']
33+
'Cannot run a file that does not have a valid format.',
34+
'Exec format error']
3435
};
3536
// If we don't know a priori what the error would be, we accept anything.
3637
const errorMessages = errorMessagesByPlatform[process.platform] || [''];

0 commit comments

Comments
 (0)