public ProcessRunResult(ProcessExitType exitType, ICrashReport crashReport, StringOrFile stdOut, StringOrFile stdErr, double memoryUsed, int exitCode, TimeSpan executionTime)
 {
     ExitType      = exitType;
     CrashReport   = crashReport;
     Output        = stdOut;
     StandardError = stdErr;
     MemoryUsed    = memoryUsed;
     ExitCode      = exitCode;
     ExecutionTime = executionTime;
 }
Beispiel #2
0
        private bool TryTranslateUngracefulExit(ProcessExitType processExitType, out SolutionEvaluationTestResultType type)
        {
            switch (processExitType)
            {
            case ProcessExitType.Crashed:
                type = SolutionEvaluationTestResultType.ProgramCrashed;
                return(true);

            case ProcessExitType.Timeout:
                type = SolutionEvaluationTestResultType.TimeLimitExceeded;
                return(true);

            default:
                type = default(SolutionEvaluationTestResultType);
                return(false);
            }
        }