Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 82fc9a8

Browse filesBrowse 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 <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 3f66109 commit 82fc9a8
Copy full SHA for 82fc9a8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-module-loading-error.js
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.