mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
* Get bunx tests to pass on Windows * wip * WIP * wip * wip * ads * asdf * makeOpenPath * almost revert * fix build * enoent * fix bun install git repos * cleanup * use custom zig stdlib from submodule * update dockerfile to copy zig stdlib sources * fix dockerfile, update gitmodules * fix dockerfile * fix build * fix build * fix symlinkat * fix build * fix build * Remove usages of unreachable * Fixup * Fixup * wip * fixup * Fix one of the bugs * asd * Normalize BUN_INSTALL_CACHE_DIR var * Set iterable to false when we're about to delete * Update bun.zig * I still can't repro this outside CI * i think that fixes it? * fix posix compile * factor out directory creation * update all install methods to use InstallDirState * move walker creation to init function * fix error cleanup * fix posix compile * all install tests pass locally * cleanup * [autofix.ci] apply automated fixes * Fix posix regressions --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com> Co-authored-by: Meghan Denny <hello@nektro.net> Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com> Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com> Co-authored-by: Georgijs Vilums <georgijs@bun.sh> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
30 lines
807 B
TypeScript
30 lines
807 B
TypeScript
import { spawn } from "bun";
|
|
import { expect, test } from "bun:test";
|
|
|
|
test("spawn stress", async () => {
|
|
for (let i = 0; i < 100; i++) {
|
|
try {
|
|
console.log("--- Begin Iteration " + i, "----");
|
|
const withoutCache = spawn({
|
|
cmd: ["clang", "--version"],
|
|
stdout: "pipe",
|
|
stderr: "pipe",
|
|
stdin: "ignore",
|
|
});
|
|
var err = await new Response(withoutCache.stderr).text();
|
|
var out = await new Response(withoutCache.stdout).text();
|
|
console.log("--- End Iteration " + i, "----");
|
|
out = out.trim();
|
|
err = err.trim();
|
|
|
|
expect(out).not.toBe("");
|
|
await Bun.sleep(1);
|
|
} catch (e) {
|
|
console.log("Failed in Iteration " + i + "\n");
|
|
console.log(out);
|
|
console.log(err);
|
|
throw e;
|
|
}
|
|
}
|
|
}, 99999999);
|