diff --git a/util/processing.py b/util/processing.py index 5130d93ad35724d23ad694cdb9e6c062b3b2ba05..6063600ebe142f7aa78b89cfe6f0fe2f8c6c5d70 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