From c4ff5e4a7e17492ad133ef5ccde7e6345c71e573 Mon Sep 17 00:00:00 2001 From: leeight Date: Sat, 21 Aug 2021 10:58:26 +0800 Subject: [PATCH] test: update error message keywords MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This testcase failed on Apple Silicon M1, add the error message pattern: `not a mach-o file` PR-URL: https://github.com/nodejs/node/pull/39826 Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Michaël Zasso Reviewed-By: James M Snell Reviewed-By: Khaidi Chu --- test/parallel/test-module-loading-error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-module-loading-error.js b/test/parallel/test-module-loading-error.js index 5bc01ce52d7279..8cbe8b2c675663 100644 --- a/test/parallel/test-module-loading-error.js +++ b/test/parallel/test-module-loading-error.js @@ -28,7 +28,7 @@ const errorMessagesByPlatform = { win32: ['is not a valid Win32 application'], linux: ['file too short', 'Exec format error'], sunos: ['unknown file type', 'not an ELF file'], - darwin: ['file too short'], + darwin: ['file too short', 'not a mach-o file'], aix: ['Cannot load module', 'Cannot run a file that does not have a valid format.', 'Exec format error'],