projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8dea52f
)
Placeholder for SCO bc bug detection
author
Bodo Möller
<bodo@openssl.org>
Fri, 8 Dec 2000 08:30:38 +0000
(08:30 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 8 Dec 2000 08:30:38 +0000
(08:30 +0000)
test/bctest
patch
|
blob
|
history
diff --git
a/test/bctest
b/test/bctest
index 33fa79d7cfc4aff674bc6320cde084119093c9b1..4e3a266bc2e12d7654fe591dfd93a324a88e2d16 100755
(executable)
--- a/
test/bctest
+++ b/
test/bctest
@@
-29,16
+29,29
@@
then
echo "bc does not work. Consider installing GNU bc." >&2
echo "cat >/dev/null"
exit 1
echo "bc does not work. Consider installing GNU bc." >&2
echo "cat >/dev/null"
exit 1
-else
- # bc works, good.
- # Now check if it knows the 'print' command.
- if [ "OK" = "`bc 2>/dev/null <<\EOF
+fi
+
+
+# insert SCO bc test case here:
+if [ 0 != "`bc <<\EOF
+0
+EOF`" ]
+then
+ echo "bc does not work. Consider installing GNU bc." >&2
+ echo "cat >/dev/null"
+ exit 1
+fi
+
+
+# bc works, good.
+# Now check if it knows the 'print' command.
+if [ "OK" = "`bc 2>/dev/null <<\EOF
print \"OK\"
EOF`" ]
print \"OK\"
EOF`" ]
-
then
+then
echo "bc"
echo "bc"
-
else
+else
echo "sed 's/print.*//' | bc"
echo "sed 's/print.*//' | bc"
- fi
- exit 0
fi
fi
+
+exit 0