Fix ghc compile

This commit is contained in:
criyle 2020-03-12 00:45:41 -04:00
parent a36ff086b2
commit 300b8a0da4
2 changed files with 2 additions and 1 deletions

View File

@ -162,7 +162,7 @@ func convertResultTypes(s envexec.Status) testCaseResultType {
return resultOutputLimitExceeded
case envexec.StatusFileError:
return resultFileError
case envexec.StatusRuntimeError:
case envexec.StatusNonzeroExitStatus, envexec.StatusSignalled:
return resultRuntimeError
case envexec.StatusJudgementFailed:
return resultJudgementFailed

View File

@ -56,6 +56,7 @@ func main() {
WithBind("/lib", "lib", true).
WithBind("/lib64", "lib64", true).
WithBind("/usr", "usr", true).
WithBind("/var/lib/ghc", "var/lib/ghc", true).
// java wants /proc/self/exe as it need relative path for lib
// however, /proc gives interface like /proc/1/fd/3 ..
// it is fine since open that file will be a EPERM