mirror of https://github.com/lukechilds/node.git
1 changed files with 9 additions and 1 deletions
@ -1,7 +1,15 @@ |
|||
var assert = require('assert'); |
|||
var binding = require('./build/Release/binding'); |
|||
var called = false; |
|||
|
|||
process.on('exit', function () { |
|||
assert(called); |
|||
}); |
|||
|
|||
binding(5, function (err, val) { |
|||
assert.equal(null, err); |
|||
assert.equal(10, val); |
|||
console.error('done :)'); |
|||
process.nextTick(function () { |
|||
called = true; |
|||
}); |
|||
}); |
|||
|
Loading…
Reference in new issue