mirror of https://github.com/nodejs/node.git
25 lines
539 B
JavaScript
25 lines
539 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const { isMainThread } = require('worker_threads');
|
|
|
|
if (!isMainThread) {
|
|
common.skip('This test only works on a main thread');
|
|
}
|
|
|
|
const { spawnSync } = require('node:child_process');
|
|
const assert = require('node:assert');
|
|
const fixtures = require('../common/fixtures');
|
|
|
|
const file = fixtures.path('test-nodetiming-uvmetricsinfo.js');
|
|
|
|
{
|
|
const { status, stderr } = spawnSync(
|
|
process.execPath,
|
|
[
|
|
file,
|
|
],
|
|
);
|
|
assert.strictEqual(status, 0, stderr.toString());
|
|
}
|