Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/games Since /usr/games is rarely in one's $PATH, provi...
details: https://anonhg.NetBSD.org/src/rev/f1e4d05dbcf7
branches: trunk
changeset: 758879:f1e4d05dbcf7
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Nov 19 12:31:36 2010 +0000
description:
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@
diffstat:
tests/games/t_factor.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r b5541b26561d -r f1e4d05dbcf7 tests/games/t_factor.sh
--- a/tests/games/t_factor.sh Fri Nov 19 09:11:45 2010 +0000
+++ b/tests/games/t_factor.sh Fri Nov 19 12:31:36 2010 +0000
@@ -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'
Home |
Main Index |
Thread Index |
Old Index