Use node-runas for testing native modules.

This commit is contained in:
Cheng Zhao 2013-12-17 12:00:21 +08:00
parent e07e26ca76
commit 1d88b31edd
3 changed files with 6 additions and 12 deletions

6
spec/fixtures/module/runas.js vendored Normal file
View file

@ -0,0 +1,6 @@
process.on('uncaughtException', function(err) {
process.send(err.message);
});
require('runas');
process.send('ok');