diff --git a/src/runner/judge.ts b/src/runner/judge.ts index cd3ded5..c01bfe8 100644 --- a/src/runner/judge.ts +++ b/src/runner/judge.ts @@ -326,6 +326,9 @@ export async function judgeInteraction(task: InteractionRunTask) } else if (runResult.result.status === SandboxStatus.RuntimeError) { message = `Killed: ${signals[runResult.result.code]}`; status = TestcaseResultType.RuntimeError; + } else if (runResult.result.status === SandboxStatus.Cancelled) { + // User program is cancelled because the interactor has already exited. + // We do nothing here. } else if (runResult.result.status !== SandboxStatus.OK) { message = "Warning: corrupt sandbox result " + util.inspect(runResult.result); status = TestcaseResultType.RuntimeError;