From afea89cacecc2a13480e235319928f5cd4b1e265 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 30 Sep 2003 03:29:08 +0000 Subject: [PATCH] Make this test actually *work*... --- regress/games/factor/factor.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/regress/games/factor/factor.sh b/regress/games/factor/factor.sh index fe0d59189464..e6a9b724f760 100755 --- a/regress/games/factor/factor.sh +++ b/regress/games/factor/factor.sh @@ -1,8 +1,8 @@ #!/bin/ksh function test_factor { - echo "Testing: `eval factor $1`" - res=`eval factor $1 2>&1` + echo "Testing: \`/usr/games/factor $1\`" + res=`/usr/games/factor $1 2>&1` if [ "$res" != "$2" ]; then echo "Expected \"$2\", got \"$res\" from factor: `eval echo $1`" exit 1 @@ -14,5 +14,6 @@ function test_factor { # Test overflow cases test_factor '8675309' '8675309: 8675309' +test_factor '6172538568' '6172538568: 2 2 2 3 7 17 2161253' exit 0