Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4eabc2bf authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware) Committed by Greg Kroah-Hartman
Browse files

ktest: Fix child exit code processing



commit 32677207dcc5e594254b7fb4fb2352b1755b1d5b upstream.

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

Fixes: c5dacb88 ("ktest: Allow overriding bisect test results")
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 53494d78
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2450,7 +2450,7 @@ sub do_run_test {
    }

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

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