]> git.baikalelectronics.ru Git - kernel.git/commit
ktest: Fix off-by-one in config bisect result
authorSteven Rostedt <srostedt@redhat.com>
Thu, 2 Jun 2011 03:22:30 +0000 (23:22 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 2 Jun 2011 15:57:41 +0000 (11:57 -0400)
commitbb3b15e7dda6bf43c997c108b7356c98af33181f
tree725aa612c6d01c912e724c3dc0e1eb8f4e1b2712
parentf5cf903e46ec327fe864a739ad63ac3192eb2844
ktest: Fix off-by-one in config bisect result

Because in perl the array size returned by $#arr, is the last
index and not the actually size of the array, we end the config
bisect early, thinking there is only one config left when there
are in fact two. Thus the result has a 50% chance of picking
the correct config that caused the problem.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl