diff options
author | Richard Lau <riclau@uk.ibm.com> | 2019-01-09 17:00:06 +0000 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2019-03-15 18:55:47 +0000 |
commit | f6ff8c51bc6b97882b6d60b6b7f7db099539de00 (patch) | |
tree | 78212b72d81bd313db45d24bb8f03f4f5015486d /test/parallel | |
parent | d4b6643ac333863efd417732ac641582e1a6211d (diff) | |
download | node-new-f6ff8c51bc6b97882b6d60b6b7f7db099539de00.tar.gz |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel')
-rw-r--r-- | test/parallel/test-module-loading-error.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-module-loading-error.js b/test/parallel/test-module-loading-error.js index 68f45d774e..9747f58fe5 100644 --- a/test/parallel/test-module-loading-error.js +++ b/test/parallel/test-module-loading-error.js @@ -30,7 +30,8 @@ const errorMessagesByPlatform = { sunos: ['unknown file type', 'not an ELF file'], darwin: ['file too short'], aix: ['Cannot load module', - 'Cannot run a file that does not have a valid format.'] + 'Cannot run a file that does not have a valid format.', + 'Exec format error'] }; // If we don't know a priori what the error would be, we accept anything. const errorMessages = errorMessagesByPlatform[process.platform] || ['']; |