harden installers rendering and dependency hygiene
This commit is contained in:
9
tests/pi-launch.test.ts
Normal file
9
tests/pi-launch.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { exitCodeFromSignal } from "../src/pi/launch.js";
|
||||
|
||||
test("exitCodeFromSignal maps POSIX signals to conventional shell exit codes", () => {
|
||||
assert.equal(exitCodeFromSignal("SIGTERM"), 143);
|
||||
assert.equal(exitCodeFromSignal("SIGSEGV"), 139);
|
||||
});
|
||||
Reference in New Issue
Block a user