[Crosstoolchain-logs] [device-tree-compiler] 223/357: dtc: Make dtc-checfails.sh script catch deaths-by-signal

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 0d9d10184b03e352da144fb7e640016bf98fd615
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Fri Dec 7 15:37:45 2007 +1100

    dtc: Make dtc-checfails.sh script catch deaths-by-signal
    
    Since commit 5ba0086bfd0fa6ab25f7ce1870417301a26c104f, the
    dtc-checkfails.sh script does not check the return code from dtc.
    That's reasonable, since depending on the checks we're testing, dtc
    could either complete succesfully or return an error.
    
    However, it's never right for dtc to SEGV or otherwise be killed by a
    signal.  So the script should catch that, and fail the testcase if it
    happens.  This patch implements this behaviour.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 tests/dtc-checkfails.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/dtc-checkfails.sh b/tests/dtc-checkfails.sh
index cca4119..16a93e8 100755
--- a/tests/dtc-checkfails.sh
+++ b/tests/dtc-checkfails.sh
@@ -17,6 +17,10 @@ rm -f $TMPFILE $LOG
 verbose_run_log "$LOG" "$DTC" -o /dev/null "$@"
 ret="$?"
 
+if [ "$ret" -gt 127 ]; then
+    FAIL "dtc killed by signal (ret=$ret)"
+fi
+
 for c in $CHECKS; do
     if ! grep -E "^(ERROR)|(Warning) \($c\):" $LOG > /dev/null; then
 	FAIL "Failed to trigger check \"%c\""

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list