From 53b253b75acda47b63b745d0d271160afc3bf9c0 Mon Sep 17 00:00:00 2001 From: Gilles Espinasse Date: Sun, 26 May 2013 07:25:55 +1000 Subject: [PATCH] skip kill test too if running runtest I find more readable instead of make check to run cd testsuite && make site.exp && DEJAGNU=global-conf.exp runtest But in that case, kill.exp was still trying to run with ERROR: tcl error sourcing ./kill.test/kill.exp. ERROR: couldn't execute "/usr/src/procps-ng-3.3.7/kill": no such file or directory ... Simply return from test if kill is not build Signed-off-by: Gilles Espinasse --- testsuite/kill.test/kill.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testsuite/kill.test/kill.exp b/testsuite/kill.test/kill.exp index 8b0d61b4..bed50a8f 100644 --- a/testsuite/kill.test/kill.exp +++ b/testsuite/kill.test/kill.exp @@ -3,6 +3,11 @@ # set kill ${topdir}kill +if { ![ file exists $kill ] } { + untested { skipping (not build)} + return +} + set test "kill with no arguments" spawn $kill expect_pass "$test" "Usage:\\s+\(lt-\)?kill \\\[options\\\] \\\[...\\\]\\s+Options:\\s+ \\\[...\\\]\\s+send signal to every listed\\s+-, -s, --signal \\s+specify the to be sent\\s+-l, --list=\\\[\\\]\\s+list all signal names, or convert one to a name\\\s+-L, --table\\s+list all signal names in a nice table$usage_help$usage_version$usage_man"