mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix testlib exitcode
This commit is contained in:
1 parent
d29bd22249
commit
af91a6307d
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "3.1.10",
|
"version": "3.1.11",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ const checkers: Record<string, Checker> = new Proxy({
|
|||||||
message: stderr,
|
message: stderr,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (status === STATUS.STATUS_RUNTIME_ERROR) {
|
if (status === STATUS.STATUS_RUNTIME_ERROR && !stderr?.trim()) {
|
||||||
return {
|
return {
|
||||||
status: STATUS.STATUS_WRONG_ANSWER,
|
status: STATUS.STATUS_WRONG_ANSWER,
|
||||||
score: 0,
|
score: 0,
|
||||||
|
|||||||
Reference in new issue
Block a user