Fix undef warning during testing
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 15:04:03 +0000 (17:04 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 15:04:03 +0000 (17:04 +0200)
t/01-jobs.t

index 78dc416..d0c928b 100644 (file)
@@ -68,7 +68,7 @@ for my $problem (@problems) {
        my $pbmeta = LoadFile "$problem/meta.yml";
        for (1 .. $pbmeta->{testcnt}) {
                $pbmeta->{infile}[$_ - 1] = read_file "$problem/$_.in" if $pbmeta->{generator} eq 'File';
-               $pbmeta->{okfile}[$_ - 1] = read_file "$problem/$_.ok" if $pbmeta->{runner} eq 'File';
+               $pbmeta->{okfile}[$_ - 1] = read_file "$problem/$_.ok" if $pbmeta->{runner} && $pbmeta->{runner} eq 'File';
        }
        if (exists $pbmeta->{files}) {
                $_->{content} = read_file "$problem/$_->{name}" for values %{$pbmeta->{files}}
This page took 0.03636 seconds and 4 git commands to generate.