Skip to content

Commit

Permalink
ktest: Fix child exit code processing
Browse files Browse the repository at this point in the history
commit 3267720 upstream.

The child_exit errno needs to be shifted by 8 bits to compare against the
return values for the bisect variables.

Fixes: c5dacb8 ("ktest: Allow overriding bisect test results")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
  • Loading branch information
Steven Rostedt (VMware) authored and Jiri Slaby committed Mar 13, 2017
1 parent 725938b commit f304013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
@@ -2375,7 +2375,7 @@ sub do_run_test {
}

waitpid $child_pid, 0;
$child_exit = $?;
$child_exit = $? >> 8;

if (!$bug && $in_bisect) {
if (defined($bisect_ret_good)) {

0 comments on commit f304013

Please sign in to comment.