/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v24.14.1
test/sequential/test-process-title.js
22 строки
835 B
Antoine du Hamel
test: ensure assertions are reachable in `test/sequential`
14 ноя 2025, 00:44
Не верифицирован
14 ноя 2025, 00:44
674befe
Код
Авторство
О чём код?
'use strict'; const common = require('../common'); const { spawnSync } = require('child_process'); const assert = require('assert'); // FIXME add sunos support if (common.isSunOS) common.skip(`Unsupported platform [${process.platform}]`); // FIXME add IBMi support if (common.isIBMi) common.skip('Unsupported platform IBMi'); // Explicitly assigning to process.title before starting the child process // is necessary otherwise *its* process.title is whatever the last // SetConsoleTitle() call in our process tree set it to. // Can be removed when https://github.com/libuv/libuv/issues/2667 is fixed. if (common.isWindows) process.title = process.execPath; const xs = 'x'.repeat(1024); const proc = spawnSync(process.execPath, ['-p', 'process.title', xs]); assert.strictEqual(proc.stdout.toString().trim(), process.execPath);