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:
Craig Small 2020-12-22 15:20:30 +11:00
parent e0a02f7989
commit fa389631ca

View File

@ -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*"