mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Use numeric comparison where intended
This commit is contained in:
parent
cf469626ad
commit
a76bc9fe87
|
|
@ -29,7 +29,7 @@ run_sbcl <<EOF
|
|||
sb-impl::*sysinit-pathname-function* 'custom-sysinit-pathname)
|
||||
(save-lisp-and-die "$tmpcore")
|
||||
EOF
|
||||
if [ $? != 0 ]; then
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failure saving core"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ chmod u+x "$tmpcore"
|
|||
EOF
|
||||
status=$?
|
||||
rm "$tmpcore"
|
||||
if [ $status != 42 ]; then
|
||||
if [ $status -ne 42 ]; then
|
||||
echo "saving runtime options from executable failed"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ chmod u+x "${tmpcore}2"
|
|||
EOF
|
||||
status=$?
|
||||
rm "$tmpcore" "${tmpcore}2"
|
||||
if [ $status != 42 ]; then
|
||||
if [ $status -ne 42 ]; then
|
||||
echo "re-saved executable used wrong memory size options"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ featurep() {
|
|||
bin="$1-test"
|
||||
rm -f $bin
|
||||
$GNUMAKE $bin -I ../src/runtime > /dev/null 2>&1 && echo "input" | ./$bin> /dev/null 2>&1
|
||||
if [ "$?" = 104 ]
|
||||
if [ "$?" -eq 104 ]
|
||||
then
|
||||
printf " :$1"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue