- Old tests fixed

- Added a static Fixuture class for test mockups
This commit is contained in:
2026-08-28 16:52:59 +02:00
parent 310218663d
commit 1ee2a2fe7a
13 changed files with 161 additions and 306 deletions
+3 -1
View File
@@ -18,6 +18,7 @@ export class Process {
private readonly _MaxChunkByteSize: number;
readonly PID: number;
readonly Name: string;
readonly CommandDescriptor: CommandDescriptor;
readonly State: ShellState;
readonly Args: string[];
@@ -26,6 +27,7 @@ export class Process {
constructor(pid: number, state: ShellState, descriptor: CommandDescriptor, flags: string[], args: string[]) {
this.PID = pid;
this.State = state;
this.Name = descriptor.name;
this.CommandDescriptor = descriptor;
this.Flags = flags;
this.Args = args;
@@ -146,7 +148,7 @@ export class Process {
const result: ResultError<SignalTerminationError> = createErrorResult(
"SignalTermination",
`Process ${this.PID} killed by a ${signal.type}`,
`Process ${this.Name}(${this.PID}) killed by a ${SIGNAL_MAP[signal.type]}(${signal.type})`,
{ signalNumber: signal.type, signalName: SIGNAL_MAP[signal.type] },
this.CommandDescriptor.name,
);