mirror of https://github.com/lukechilds/node.git
Ryan Dahl
13 years ago
3 changed files with 26 additions and 1 deletions
@ -0,0 +1,13 @@ |
|||
// Skip this test if Node is not compiled with isolates support.
|
|||
if (!process.features.isolates) return; |
|||
|
|||
var assert = require('assert'); |
|||
|
|||
// This is the same test as test-child-process-fork except it uses isolates
|
|||
// instead of processes. process.TEST_ISOLATE is a ghetto method of passing
|
|||
// some information into the other test.
|
|||
process.TEST_ISOLATE = true; |
|||
require('./test-child-process-fork'); |
|||
|
|||
var numThreads = process.binding('isolates').count(); |
|||
assert.ok(numThreads > 1); |
Loading…
Reference in new issue