Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1655367 > unrolled thread

[PATCH 3.16 107/212] ktest: Fix child exit code processing

Started byBen Hutchings <ben@decadent.org.uk>
First post2017-06-01 18:20 +0200
Last post2017-06-01 18:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.16 107/212] ktest: Fix child exit code processing Ben Hutchings <ben@decadent.org.uk> - 2017-06-01 18:20 +0200

#1655367 — [PATCH 3.16 107/212] ktest: Fix child exit code processing

FromBen Hutchings <ben@decadent.org.uk>
Date2017-06-01 18:20 +0200
Subject[PATCH 3.16 107/212] ktest: Fix child exit code processing
Message-ID<tNAZk-4Q6-19@gated-at.bofh.it>
3.16.44-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

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: c5dacb88f0a64 ("ktest: Allow overriding bisect test results")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 tools/testing/ktest/ktest.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -2445,7 +2445,7 @@ sub do_run_test {
     }
 
     waitpid $child_pid, 0;
-    $child_exit = $?;
+    $child_exit = $? >> 8;
 
     if (!$bug && $in_bisect) {
 	if (defined($bisect_ret_good)) {

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web