Commit db01d556 authored by Richard Levitte's avatar Richard Levitte
Browse files

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

parent 0a52d38b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;