From 2c7b575099e14836291200d845fe47f9233cbe84 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Tue, 22 Dec 2020 15:20:30 +1100 Subject: build-sys: Make pwait test dependent on pwait built As pwait building is conditional, testsuite should only run pwait tests if there is a pwait binary. --- testsuite/pwait.test/pwait.exp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuite') diff --git a/testsuite/pwait.test/pwait.exp b/testsuite/pwait.test/pwait.exp index 867f0ff..0b59a95 100644 --- a/testsuite/pwait.test/pwait.exp +++ b/testsuite/pwait.test/pwait.exp @@ -9,6 +9,11 @@ set not_uid [ expr { $uid + 1 } ] set gid [ exec id -g ] set not_gid [ expr { $gid + 1 } ] +if { ![ file exists $pwait ] } { + untested { skipping (not build)} + return +} + set test "pwait with no arguments" spawn $pwait expect_pass "$test" "^\(lt-\)\?pwait: no matching criteria specified\\s*" -- cgit v1.2.1