test: add OS X to module loading error test
Previously, this test was not supported on OS X. This change makes sure that it is no longer skipped. PR-URL: https://github.com/nodejs/node/pull/3901 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
9a628e2dac
commit
339d3840c8
@ -7,7 +7,8 @@ console.error('load test-module-loading-error.js');
|
|||||||
var error_desc = {
|
var error_desc = {
|
||||||
win32: ['%1 is not a valid Win32 application'],
|
win32: ['%1 is not a valid Win32 application'],
|
||||||
linux: ['file too short', 'Exec format error'],
|
linux: ['file too short', 'Exec format error'],
|
||||||
sunos: ['unknown file type', 'not an ELF file']
|
sunos: ['unknown file type', 'not an ELF file'],
|
||||||
|
darwin: ['file too short']
|
||||||
};
|
};
|
||||||
var dlerror_msg = error_desc[process.platform];
|
var dlerror_msg = error_desc[process.platform];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user