Compare commits

...

2 Commits

Author SHA1 Message Date
Cursor Agent
b3277f3508 Add test for process title setting with long argument on different platforms 2025-06-05 23:01:59 +00:00
Cursor Agent
7a90c986a2 Initial commit of modified files from installation 2025-06-05 22:53:48 +00:00
3 changed files with 24 additions and 1 deletions

2
.gitignore vendored
View File

@@ -183,4 +183,4 @@ codegen-for-zig-team.tar.gz
*.sock
scratch*.{js,ts,tsx,cjs,mjs}
*.bun-build
*.bun-build/bun/

1
bun Submodule

Submodule bun added at f62940bbda

View File

@@ -0,0 +1,22 @@
'use strict';
const common = require('../common');
const { spawnSync } = require('child_process');
const { strictEqual } = 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]);
strictEqual(proc.stdout.toString().trim(), process.execPath);