summaryrefslogtreecommitdiff
path: root/tests/getpart.pm
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-30 17:15:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-30 17:15:00 +0000
commit69fc3637603135961f0c0dd84ba11e8cd19320f4 (patch)
tree496b804d9df5fabd5d26581ef6e7e27cd1babd66 /tests/getpart.pm
parentbea02ddebec7b49cd087ccde78cba0cd0eaf1882 (diff)
downloadcurl-69fc3637603135961f0c0dd84ba11e8cd19320f4.tar.gz
make the diffs with 'diff -u' to make them nicer and easier to read
Diffstat (limited to 'tests/getpart.pm')
-rw-r--r--tests/getpart.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/getpart.pm b/tests/getpart.pm
index 79287524e..6935f9eb7 100644
--- a/tests/getpart.pm
+++ b/tests/getpart.pm
@@ -184,8 +184,8 @@ sub loadarray {
sub showdiff {
my ($firstref, $secondref)=@_;
- my $file1=".array1";
- my $file2=".array2";
+ my $file1=".generated";
+ my $file2=".expected";
open(TEMP, ">$file1");
for(@$firstref) {
@@ -198,8 +198,7 @@ sub showdiff {
print TEMP $_;
}
close(TEMP);
-
- my @out = `diff $file1 $file2`;
+ my @out = `diff -u $file2 $file1`;
unlink $file1, $file2;
return @out;