Work around more GNU bc bugs
diff --git a/tests/randmath.py b/tests/randmath.py
index 78d20db..bf626e8 100755
--- a/tests/randmath.py
+++ b/tests/randmath.py
@@ -175,6 +175,13 @@
print(" other {} returned an error ({}); continuing...".format(exe, p.returncode))
return
+ if output1 == "\n":
+ print(" other {} has a bug; continuing...".format(exe))
+ return
+
+ if output1 == "-0\n":
+ output1 = "0\n"
+
args = [ bcexe, options ]
p = subprocess.run(args, input=indata.encode(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)