summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorCraig Small <csmall@dropbear.xyz>2020-12-22 15:20:30 +1100
committerCraig Small <csmall@dropbear.xyz>2020-12-22 15:20:30 +1100
commit2c7b575099e14836291200d845fe47f9233cbe84 (patch)
tree36a07e5e036e75767fc4372c7ecf5e5ca1eeb7e7 /testsuite
parentdbc65b1ac84923d050253e15f36dcad288997c48 (diff)
downloadprocps-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.exp5
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*"