File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
test/addons/dlopen-ping-pong Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,8 @@ const bindingPath = require.resolve(`./build/${common.buildType}/binding`);
1212console . log ( 'process.dlopen:' , bindingPath ) ;
1313process . dlopen ( module , bindingPath ,
1414 os . constants . dlopen . RTLD_NOW | os . constants . dlopen . RTLD_GLOBAL ) ;
15-
16- let pingSOPath = `${ path . dirname ( bindingPath ) } /lib.target/ping.so` ;
17-
18- if ( common . isOSX ) {
19- pingSOPath = `${ path . dirname ( bindingPath ) } /ping.so` ;
20- }
21-
22- console . log ( 'module.exports.load:' , pingSOPath ) ;
23- module . exports . load ( pingSOPath ) ;
24-
15+ console . log ( 'module.exports.load:' , `${ path . dirname ( bindingPath ) } /ping.so` ) ;
16+ module . exports . load ( `${ path . dirname ( bindingPath ) } /ping.so` ) ;
2517assert . strictEqual ( module . exports . ping ( ) , 'pong' ) ;
2618
2719// Check that after the addon is loaded with
You can’t perform that action at this time.
0 commit comments