From: "Paul E. McKenney" <[email protected]>

Currently, the torture.sh --allmodconfig testing looks solely at the
exit code from the kernel build, and thus fails to flag many compiler
warnings.  This commit therefore checks the kernel-build output for
compiler diagnostics.

Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Neeraj Upadhyay (AMD) <[email protected]>
---
 tools/testing/selftests/rcutorture/bin/torture.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh 
b/tools/testing/selftests/rcutorture/bin/torture.sh
index 39844d213da5..611bc03a8dc7 100755
--- a/tools/testing/selftests/rcutorture/bin/torture.sh
+++ b/tools/testing/selftests/rcutorture/bin/torture.sh
@@ -438,6 +438,10 @@ then
                make -j$MAKE_ALLOTED_CPUS >> "$amcdir/Make.out" 2>&1
                retcode="$?"
                echo $retcode > "$amcdir/Make.exitcode"
+               if grep -E -q "Stop|ERROR|Error|error:|warning:" < 
"$amcdir/Make.out"
+               then
+                       retcode=99
+               fi
                buildphase='"make"'
        fi
        if test "$retcode" -eq 0
-- 
2.40.1


Reply via email to