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

View File

@ -9,6 +9,11 @@ set not_uid [ expr { $uid + 1 } ]
set gid [ exec id -g ] set gid [ exec id -g ]
set not_gid [ expr { $gid + 1 } ] set not_gid [ expr { $gid + 1 } ]
if { ![ file exists $pwait ] } {
untested { skipping (not build)}
return
}
set test "pwait with no arguments" set test "pwait with no arguments"
spawn $pwait spawn $pwait
expect_pass "$test" "^\(lt-\)\?pwait: no matching criteria specified\\s*" expect_pass "$test" "^\(lt-\)\?pwait: no matching criteria specified\\s*"