Commit 8199784
test: fix test-module-loading-error for musl
When a compiled library file does not have the proper format,
musl returns the error message ENOEXEC as 'Exec format error' but
glibc returns 'file too short' if the file is under a certain size.
Reference:
http://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n46
This patch consists of tolerating musl's error.
PR-URL: #3657
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>1 parent e5b9109 commit 8199784Copy full SHA for 8199784
File tree
Expand file treeCollapse file tree
1 file changed
+5
-0
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+5
-0
lines changedOpen diff view settings
Collapse file
test/parallel/test-module-loading-error.js
Copy file name to clipboardExpand all lines: test/parallel/test-module-loading-error.js+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
13 | 14 | |
14 | 15 | |
| ||
20 | 21 | |
21 | 22 | |
22 | 23 | |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
23 | 28 | |
24 | 29 | |
25 | 30 | |
|
0 commit comments