mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: update windows module load error message
libuv 1.14.0 includes a fix for the "%1 is not a valid Win32 application" error message. Refs: https://github.com/nodejs/node/pull/14866 PR-URL: https://github.com/nodejs/node/pull/14950 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
08d683053f
commit
4030c7e077
1 file changed
+3
-5
@@ -2,17 +2,15 @@
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
|
||||
console.error('load test-module-loading-error.js');
|
||||
|
||||
const error_desc = {
|
||||
win32: ['%1 is not a valid Win32 application'],
|
||||
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'],
|
||||
aix: ['Cannot load module',
|
||||
'Cannot run a file that does not have a valid format.']
|
||||
};
|
||||
const dlerror_msg = error_desc[process.platform];
|
||||
const dlerror_msg = errorMessagesByPlatform[process.platform];
|
||||
|
||||
if (!dlerror_msg)
|
||||
common.skip('platform not supported.');
|
||||
|
||||
Reference in new issue
Block a user