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.
This commit is contained in:
parent
e0a02f7989
commit
fa389631ca
@ -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*"
|
||||
|
Loading…
Reference in New Issue
Block a user