judge: fix testlib exitcode

This commit is contained in:
undefined committed 2022-12-06 17:24:22 +08:00
1 parent d29bd22249
commit af91a6307d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -210,7 +210,7 @@ const checkers: Record<string, Checker> = new Proxy({
message: stderr,
};
}
if (status === STATUS.STATUS_RUNTIME_ERROR) {
if (status === STATUS.STATUS_RUNTIME_ERROR && !stderr?.trim()) {
return {
status: STATUS.STATUS_WRONG_ANSWER,
score: 0,