Have the self test use bctest to check that bc is sane.
[openssl.git] / util / selftest.pl
index 775f1712e909b7ff1abc7fe96f317866aa943429..fabf366995a819428a350b41bc2db2a30cd15860 100644 (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;