summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Lau <riclau@uk.ibm.com>2019-01-09 17:00:06 +0000
committerRichard Lau <riclau@uk.ibm.com>2019-01-11 12:37:29 -0500
commitfbab26f5ae481001c67d9ff4da77155cb67fd6ec (patch)
tree65e3ed36647233b6a3d8a6d22bb2164757142a79 /test
parent7710235ec35586c15f83e826926ea8bfe2a35a22 (diff)
downloadandroid-node-v8-fbab26f5ae481001c67d9ff4da77155cb67fd6ec.tar.gz
android-node-v8-fbab26f5ae481001c67d9ff4da77155cb67fd6ec.tar.bz2
android-node-v8-fbab26f5ae481001c67d9ff4da77155cb67fd6ec.zip
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')
-rw-r--r--test/parallel/test-module-loading-error.js3
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 f2351e708f..67dee6a3ba 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] || [''];