]> iEval git - gruntmaster-daemon.git/commitdiff
Enforce time limit for interactive verifiers
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 21 Apr 2014 16:50:04 +0000 (19:50 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 21 Apr 2014 16:50:04 +0000 (19:50 +0300)
lib/Gruntmaster/Daemon/Runner/Interactive.pm

index ecefbff7f8a91a8842e190d31f88d89f63e3557d..115e7a198ac577b0d4cc555ca9fdfe3f1a8b8346 100644 (file)
@@ -28,7 +28,7 @@ sub run{
                die [WA, "Wrong Answer"] if $?;
        } else {
                try {
-                       $meta->{files}{ver}{run}->($meta->{files}{ver}{name}, fds => [qw/1 >fifo1 0 fifo2 4 >result/], args => [$test]);
+                       $meta->{files}{ver}{run}->($meta->{files}{ver}{name}, fds => [qw/1 >fifo1 0 fifo2 4 >result/], args => [$test], map {defined $meta->{$_} ? ($_ => $meta->{$_}) : () } qw/timeout mlimit/);
                } catch {
                        exit 1;
                };
This page took 0.029858 seconds and 4 git commands to generate.