aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/getpart.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/getpart.pm b/tests/getpart.pm
index 898ecec6b..d1c8ec856 100644
--- a/tests/getpart.pm
+++ b/tests/getpart.pm
@@ -220,7 +220,11 @@ sub showdiff {
print TEMP $_;
}
close(TEMP);
- my @out = `diff -u $file2 $file1`;
+ my @out = `diff -u $file2 $file1 2>/dev/null`;
+
+ if(!$out[0]) {
+ @out = `diff -c $file2 $file1 2>/dev/null`;
+ }
return @out;
}