Fix test bugs in generating test cases

Signed-off-by: Gavin Howard <[email protected]>
This commit is contained in:
Gavin Howard 2022-07-17 00:47:06 -06:00
parent 9ad99ce093
commit e9ff9a45f5
Signed by: gavin
GPG Key ID: C08038BDF280D33E
1 changed files with 7 additions and 5 deletions

View File

@ -92,11 +92,11 @@ unset DC_LINE_LENGTH
# Set stuff for the correct calculator.
if [ "$d" = "bc" ]; then
options="-lqc"
options="-lq"
var="BC_LINE_LENGTH"
halt="halt"
else
options="-c"
options=""
var="DC_LINE_LENGTH"
halt="q"
fi
@ -123,9 +123,11 @@ if [ ! -f "$results" ]; then
printf 'done\n'
fi
# We set this here because GNU dc does not have it.
if [ "$d" = "dc" ]; then
options="-x"
# We set this here because GNU bc and dc does not have these options.
if [ "$d" = "bc" ]; then
options="-lqc"
else
options="-xc"
fi
export $var=string