d2c6b1ede0
Added test "option should be suffixed with =" This test exhibits the bug (expected failure) that `dd if<TAB>' gets completed with `\=' instead of `='.
34 lines
364 B
Plaintext
34 lines
364 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}; # setup()
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified
|
|
}; # teardown()
|
|
|
|
|
|
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 }
|
|
}; # expect
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
teardown
|