Module Name: src
Committed By: pgoyette
Date: Fri Nov 19 12:31:36 UTC 2010
Modified Files:
src/tests/games: t_factor.sh
Log Message:
Since /usr/games is rarely in one's $PATH, provide an absolute path to the
test-program. This lets automated testing reach and execute a couple more
tests rather than skipping them.
Discussed privately with pooka@
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/games/t_factor.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/games/t_factor.sh
diff -u src/tests/games/t_factor.sh:1.6 src/tests/games/t_factor.sh:1.7
--- src/tests/games/t_factor.sh:1.6 Sun Nov 7 17:51:19 2010
+++ src/tests/games/t_factor.sh Fri Nov 19 12:31:36 2010
@@ -1,4 +1,4 @@
-# $NetBSD: t_factor.sh,v 1.6 2010/11/07 17:51:19 jmmv Exp $
+# $NetBSD: t_factor.sh,v 1.7 2010/11/19 12:31:36 pgoyette Exp $
#
# Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -27,13 +27,13 @@
expect() {
echo "${2}" >expout
- atf_check -s eq:0 -o file:expout -e empty factor ${1}
+ atf_check -s eq:0 -o file:expout -e empty /usr/games/factor ${1}
}
atf_test_case overflow
overflow_head() {
atf_set "descr" "Tests for overflow conditions"
- atf_set "require.progs" "factor"
+ atf_set "require.progs" "/usr/games/factor"
}
overflow_body() {
expect '8675309' '8675309: 8675309'
@@ -44,7 +44,7 @@
loop_head() {
atf_set "descr" "Tests some cases that once locked the program" \
"in an infinite loop"
- atf_set "require.progs" "factor"
+ atf_set "require.progs" "/usr/games/factor"
}
loop_body() {
expect '99999999999991' '99999999999991: 7 13 769231 1428571'