diff options
author | 2021-02-25 14:28:51 +0100 | |
---|---|---|
committer | 2021-02-25 14:28:51 +0100 | |
commit | 7d34cb8563d8c01e5f5d1b038e0fbd507063e853 (patch) | |
tree | f276a5e4f62645022dc27a892d810f623bdf4b37 /resources/unittest_template.py | |
parent | Add return code 6 for exceptions when loading module (diff) |
Add return code 7 for processes killed by NsJail
Diffstat (limited to 'resources/unittest_template.py')
-rw-r--r-- | resources/unittest_template.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/unittest_template.py b/resources/unittest_template.py index 02d3894..38e3be8 100644 --- a/resources/unittest_template.py +++ b/resources/unittest_template.py @@ -27,6 +27,8 @@ def _exit_sandbox(code: int) -> NoReturn: - 5: Syntax error while parsing user code - 6: Uncaught exception while loading user code - 99: Internal error + + 137 can also be generated by NsJail when killing the process. """ print(RESULT.getvalue(), file=ORIGINAL_STDOUT, end="") sys.exit(code) |