Skip to content

Commit f6ff8c5

Browse files
richardlauBethGriggs
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 <Bethany.Griggs@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: George Adams <george.adams@uk.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent d4b6643 commit f6ff8c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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)