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
dbc65b1ac8
commit
2c7b575099
@ -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