From 2c7b575099e14836291200d845fe47f9233cbe84 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Tue, 22 Dec 2020 15:20:30 +1100 Subject: [PATCH] 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(+) diff --git a/testsuite/pwait.test/pwait.exp b/testsuite/pwait.test/pwait.exp index 867f0ff5..0b59a953 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*"