Skip to content

Commit

Permalink
squash: add test-trace-events-api.js
Browse files Browse the repository at this point in the history
Currently crashes when run with workers. Real bug?
  • Loading branch information
richardlau committed Oct 16, 2018
1 parent d255466 commit 7658368
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/parallel/test-trace-events-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ const common = require('../common');

if (!process.binding('config').hasTracing)
common.skip('missing trace events');
if (!common.isMainThread)
common.skip('process.chdir is not available in Workers');

const assert = require('assert');
const cp = require('child_process');
const path = require('path');
const fs = require('fs');
const path = require('path');
const tmpdir = require('../common/tmpdir');
const {
createTracing,
Expand Down Expand Up @@ -109,7 +107,6 @@ if (isChild) {
}

tmpdir.refresh();
process.chdir(tmpdir.path);

const expectedMarks = ['A', 'B'];
const expectedBegins = [
Expand All @@ -123,7 +120,8 @@ if (isChild) {

const proc = cp.fork(__filename,
['child'],
{ execArgv: [ '--expose-gc',
{ cwd: tmpdir.path,
execArgv: [ '--expose-gc',
'--trace-event-categories',
'foo' ] });

Expand Down

0 comments on commit 7658368

Please sign in to comment.