8f4111d5a4
Many basic commands do not have long options on non-GNU systems, mark such tests as unsupported (if the command doesn't respond to --help) instead of failing. Implemented with the new $failcmd parameter to assert_exec().
23 lines
238 B
Plaintext
23 lines
238 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}; # setup()
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified
|
|
}; # teardown()
|
|
|
|
|
|
setup
|
|
|
|
|
|
if {[assert_exec {who --help} "" "" "unsupported"]} {
|
|
assert_complete_any "who --"
|
|
}; # if
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
teardown
|