diff options
author | marha <marha@users.sourceforge.net> | 2012-06-12 08:43:13 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-06-12 08:43:13 +0200 |
commit | 669b562a737c9418c53bfae69c0dbf1aabe318b4 (patch) | |
tree | 3689f9b209df6a4b74eb185f202286e435c71538 /pixman/test/fuzzer-find-diff.pl | |
parent | 59afae8769ef1f757929421e7f55449d5f6b5baf (diff) | |
parent | 925b68a7b26823fdfa1cb25d3edc3545fc2175b1 (diff) | |
download | vcxsrv-669b562a737c9418c53bfae69c0dbf1aabe318b4.tar.gz vcxsrv-669b562a737c9418c53bfae69c0dbf1aabe318b4.tar.bz2 vcxsrv-669b562a737c9418c53bfae69c0dbf1aabe318b4.zip |
Merge remote-tracking branch 'origin/released'
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`; |