From 9b1dc0f963f7168478463b673ff98536b57d6c02 Mon Sep 17 00:00:00 2001 From: ptarjan Date: Wed, 10 Apr 2013 22:46:30 -0700 Subject: [PATCH] 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. --- hphp/test/verify | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hphp/test/verify b/hphp/test/verify index 0263ee163..e33a52f1e 100755 --- a/hphp/test/verify +++ b/hphp/test/verify @@ -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")