From 815eb49d54ddd2e68e116a4c3e995b02eba7f3a1 Mon Sep 17 00:00:00 2001 From: "robinwilliam.hundt" <robinwilliam.hundt@stud.uni-goettingen.de> Date: Wed, 8 Aug 2018 13:16:28 +0200 Subject: [PATCH] CompileTest is Ubuntu compatible, Link and Unit not --- util/processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/processing.py b/util/processing.py index 5130d93a..6063600e 100644 --- a/util/processing.py +++ b/util/processing.py @@ -20,7 +20,7 @@ log = logging.getLogger(__name__) def run_cmd(cmd, stdin=None, check=False, timeout=1): return subprocess.run( - 'ulimit -v 1024; gtimeout 0.2 ' + cmd, + 'timeout 1 ' + cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, input=stdin, @@ -123,7 +123,7 @@ class CompileTest(Test): def run_test(self, submission_obj): ret = run_cmd( - "gcc-7 -std=c11 -Wall -c -xc -Icode-testing -o code.o -", + "gcc -Wall -c -x c -std=c11 -Icode-testing -o code.o -", submission_obj['code']) return not ret.returncode, ret.stderr -- GitLab