Have the self test use bctest to check that bc is sane.

This commit is contained in:
Richard Levitte 2000-12-06 10:54:31 +00:00
parent 0a52d38b31
commit db01d55671

View File

@ -138,7 +138,7 @@ if (/no-/)
goto err;
}
if (`echo 4+1 | bc` != 5)
if (`echo 4+1 | bc` != 5 || (system("sh test/bctest") >> 8) != 0)
{
print OUT "Can't run bc! Test skipped.\n";
print OUT $not_our_fault;