diff --git a/t/2scripts.t b/t/2scripts.t index e334533..e071960 100755 --- a/t/2scripts.t +++ b/t/2scripts.t @@ -15,10 +15,11 @@ ok($ps2 =~ m/\(val1\) Rshow/, 'Postscript output of tsplot contains a column na # title and creation date will be different, but the rest should be # identical: -$ps1 =~ s/^%%Title: .*//m; -$ps1 =~ s/^%%CreationDate: .*//m; -$ps2 =~ s/^%%Title: .*//m; -$ps2 =~ s/^%%CreationDate: .*//m; +for ($ps1, $ps2) { + s/^%%Title: .*//m; + s/^%%CreationDate: .*//m; + s/^ *\/Title \(.*\)//m; +} ok($ps1 eq $ps2, 'output of tsplot and tsplotv are identical'); my $ps3=`./blib/script/tsplot --output_format ps --log_y t/1.data`;