From 00a45f8933036eabf15f9298af266e5d175121fb Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 8 Feb 2015 17:04:03 +0200 Subject: [PATCH] Fix undef warning during testing --- t/01-jobs.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/01-jobs.t b/t/01-jobs.t index 78dc416..d0c928b 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -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}} -- 2.39.2