- Old tests fixed
- Added a static Fixuture class for test mockups
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user