Use numeric comparison where intended

This commit is contained in:
Douglas Katzman 2020-02-17 11:29:11 -05:00
parent cf469626ad
commit a76bc9fe87
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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