diff options
author | marha <marha@users.sourceforge.net> | 2012-06-12 08:30:03 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-06-12 08:30:03 +0200 |
commit | 925b68a7b26823fdfa1cb25d3edc3545fc2175b1 (patch) | |
tree | 57c1e15fcc492bdc9b9cfd195e552c69aba845ce /pixman/test/fuzzer-find-diff.pl | |
parent | 567cbd4acc1e35ae40d99b24bb321d97632399db (diff) | |
download | vcxsrv-925b68a7b26823fdfa1cb25d3edc3545fc2175b1.tar.gz vcxsrv-925b68a7b26823fdfa1cb25d3edc3545fc2175b1.tar.bz2 vcxsrv-925b68a7b26823fdfa1cb25d3edc3545fc2175b1.zip |
fontconfig mesa pixman git update 12 Juni 2012
Diffstat (limited to 'pixman/test/fuzzer-find-diff.pl')
-rw-r--r-- | pixman/test/fuzzer-find-diff.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pixman/test/fuzzer-find-diff.pl b/pixman/test/fuzzer-find-diff.pl index 53d9b8de1..e1d67fbf7 100644 --- a/pixman/test/fuzzer-find-diff.pl +++ b/pixman/test/fuzzer-find-diff.pl @@ -29,10 +29,17 @@ sub test_range { my $min = shift; my $max = shift; + # check that [$min, $max] range is "bad", otherwise return if (`$ARGV[0] $min $max 2>/dev/null` eq `$ARGV[1] $min $max 2>/dev/null`) { return; } + # check that $min itself is "good", otherwise return + if (`$ARGV[0] $min 2>/dev/null` ne `$ARGV[1] $min 2>/dev/null`) { + return $min; + } + + # start bisecting while ($max != $min + 1) { my $avg = int(($min + $max) / 2); my $res1 = `$ARGV[0] $min $avg 2>/dev/null`; |