From f6ff8c51bc6b97882b6d60b6b7f7db099539de00 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 9 Jan 2019 17:00:06 +0000 Subject: [PATCH] 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 Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: George Adams Reviewed-By: Michael Dawson --- test/parallel/test-module-loading-error.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-module-loading-error.js b/test/parallel/test-module-loading-error.js index 68f45d774e5ce0..9747f58fe5cd45 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] || [''];