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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
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

+3-1
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)