51b3e20ebc
Instead of writing `}; # if', write just `}' as was discussed here: http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01815.html
34 lines
329 B
Plaintext
34 lines
329 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified
|
|
}
|
|
|
|
|
|
setup
|
|
|
|
|
|
assert_complete_any "dd --"
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
set test "option should be suffixed with ="
|
|
set cmd "dd if"
|
|
send "$cmd\t"
|
|
expect -ex "$cmd"
|
|
expect {
|
|
-re "^=$" { pass $test }
|
|
-re {^\\=$} { xfail $test }
|
|
}
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
teardown
|