From 33f6e1ea296cd20366ab94e666b03899a081af94 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 6 Apr 2025 16:20:04 +0200 Subject: [PATCH] test: update expected error message for macOS PR-URL: https://github.com/nodejs/node/pull/57742 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- 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 d56e6969424..3496a4104df 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', 'not a mach-o file'], + darwin: ['file too short', 'not a mach-o file', 'not valid mach-o file'], aix: ['Cannot load module', 'Cannot run a file that does not have a valid format.', 'Exec format error'],