Skip to content

Commit 4e7212c

Browse files
leeighttargos
authored andcommitted
test: update error message keywords
This testcase failed on Apple Silicon M1, add the error message pattern: `not a mach-o file` PR-URL: #39826 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Khaidi Chu <[email protected]>
1 parent 20da0a5 commit 4e7212c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-module-loading-error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const errorMessagesByPlatform = {
2828
win32: ['is not a valid Win32 application'],
2929
linux: ['file too short', 'Exec format error'],
3030
sunos: ['unknown file type', 'not an ELF file'],
31-
darwin: ['file too short'],
31+
darwin: ['file too short', 'not a mach-o file'],
3232
aix: ['Cannot load module',
3333
'Cannot run a file that does not have a valid format.',
3434
'Exec format error'],

0 commit comments

Comments
 (0)