create .diff file even for .expectf

I'm having a tough time debugging the ##.expectf## tests because I don't have an easy diff. This is a poor man's one unless someone else is aware of a nice regex debugging thing.
Esse commit está contido em:
ptarjan
2013-04-10 22:46:30 -07:00
commit de Sara Golemon
commit 9b1dc0f963
+3
Ver Arquivo
@@ -475,6 +475,9 @@ sub run_test
unless ($content =~ /^$wanted_re$/)
{
$okay = 0;
# a poor mans aide for debugging
$diff_args = "--text -u";
`diff $diff_args $opt_srcdir/$test.expectf $opt_objdir/$test.out > $opt_objdir/$test.diff 2>&1`;
}
}
elsif (!$opt_no_exp && -e "$opt_srcdir/$test.expectregex")