diff options
author | Craig Small <csmall@dropbear.xyz> | 2020-12-22 15:20:30 +1100 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2020-12-22 15:20:30 +1100 |
commit | 2c7b575099e14836291200d845fe47f9233cbe84 (patch) | |
tree | 36a07e5e036e75767fc4372c7ecf5e5ca1eeb7e7 /testsuite | |
parent | dbc65b1ac84923d050253e15f36dcad288997c48 (diff) | |
download | procps-ng-2c7b575099e14836291200d845fe47f9233cbe84.tar.gz |
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.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/pwait.test/pwait.exp | 5 |
1 files changed, 5 insertions, 0 deletions
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*" |