test: update expected error message for macOS

PR-URL: https://github.com/nodejs/node/pull/57742
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel 2025-04-06 16:20:04 +02:00 committed by GitHub
parent 8456a12459
commit 33f6e1ea29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'],