From: Gilles Espinasse Date: Sat, 25 May 2013 21:25:55 +0000 (+1000) Subject: skip kill test too if running runtest X-Git-Tag: v3.3.8~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53b253b75acda47b63b745d0d271160afc3bf9c0;p=procps-ng 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 --- 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"