mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
481 B
14 lines
481 B
13 years ago
|
// 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);
|