OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
394094f
)
Suggestion from Elliott Hughes: tweak test infrastructure to notice if
author
Rob Landley
<rob@landley.net>
Thu, 25 Jun 2015 22:55:54 +0000
(17:55 -0500)
committer
Rob Landley
<rob@landley.net>
Thu, 25 Jun 2015 22:55:54 +0000
(17:55 -0500)
command exits with high errno and assume it segfaulted.
scripts/runtest.sh
patch
|
blob
|
history
diff --git
a/scripts/runtest.sh
b/scripts/runtest.sh
index
8da1089
..
7f9e8b9
100644
(file)
--- a/
scripts/runtest.sh
+++ b/
scripts/runtest.sh
@@
-86,6
+86,10
@@
testing()
echo -ne "$5" | eval "$2" > actual
RETVAL=$?
+ # Catch segfaults
+ [ $RETVAL -gt 128 ] && [ $RETVAL -lt 255 ] &&
+ echo "exited with signal (or returned $RETVAL)" >> actual
+
cmp expected actual > /dev/null 2>&1
if [ $? -ne 0 ]
then