Skip to content

Commit 4fb755c

Browse files
prakaashkpkMylesBorins
authored andcommitted
test: set module loading error for aix
In test/parallel/test-module-loading-error.js, an attempt is made to load a text file as a native executable. This results in an error message in a platform specific manner. AIX was not included in the list of platforms. This fix introduces the AIX error messages. PR-URL: #14511 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent 6707411 commit 4fb755c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const error_desc = {
88
win32: ['%1 is not a valid Win32 application'],
99
linux: ['file too short', 'Exec format error'],
1010
sunos: ['unknown file type', 'not an ELF file'],
11-
darwin: ['file too short']
11+
darwin: ['file too short'],
12+
aix: ['Cannot load module',
13+
'Cannot run a file that does not have a valid format.']
1214
};
1315
const dlerror_msg = error_desc[process.platform];
1416

0 commit comments

Comments
 (0)