Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Add failing test-isolates2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 10, 2012
1 parent 4cbcdb4 commit d4ee61f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
6 changes: 5 additions & 1 deletion test/simple/test-child-process-fork2.js
Expand Up @@ -27,7 +27,11 @@ var net = require('net');
var socketCloses = 0;
var N = 10;

var n = fork(common.fixturesDir + '/fork2.js');
var options = {
thread: process.TEST_ISOLATE ? true : false
};

var n = fork(common.fixturesDir + '/fork2.js', [], options);

var messageCount = 0;

Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions test/simple/test-isolates1.js
@@ -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);
4 changes: 2 additions & 2 deletions test/simple/test-isolates2.js
Expand Up @@ -3,11 +3,11 @@ if (!process.features.isolates) return;

var assert = require('assert');

// This is the same test as test-child-process-fork except it uses isolates
// This is the same test as test-child-process-fork2 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');
require('./test-child-process-fork2');

var numThreads = process.binding('isolates').count();
assert.ok(numThreads > 1);

0 comments on commit d4ee61f

Please sign in to comment.