运行目标程序
(rst *commonStructs.TestCaseResult)
| 31 | |
| 32 | // 运行目标程序 |
| 33 | func (session *JudgeSession) runNormalJudge(rst *commonStructs.TestCaseResult) (*ProcessInfo, error) { |
| 34 | ctx, cancel := context.WithTimeout(context.Background(), time.Duration(session.Timeout)*time.Second) |
| 35 | defer cancel() |
| 36 | return runAsync(ctx, session, rst, false) |
| 37 | } |
| 38 | |
| 39 | // 运行特殊评测 |
| 40 | func (session *JudgeSession) runSpecialJudge(rst *commonStructs.TestCaseResult) (*ProcessInfo, *ProcessInfo, error) { |