(testsuite) FreeBSD and Solaris sed compatibility fixes.

The linefeed between the final "d" and "}" seems to be significant for
these versions of sed.  And they are quite anal about comments, so
move them outside of the sed statement here.
This commit is contained in:
Ville Skyttä 2010-01-03 23:49:19 +02:00
parent 9fc6ef658b
commit 77dee3a323
2 changed files with 6 additions and 4 deletions

View File

@ -6,10 +6,11 @@ proc setup {} {
proc teardown {} {
assert_bash_exec {unset args COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS}
# Delete 'COMP_WORDBREAKS' occupying two lines
assert_env_unmodified {
# Delete 'COMP_WORDBREAKS' occupying two lines
/COMP_WORDBREAKS=/{N
d}
d
}
}
}; # teardown()

View File

@ -6,10 +6,11 @@ proc setup {} {
proc teardown {} {
assert_bash_exec {unset COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS}
# Delete 'COMP_WORDBREAKS' occupying two lines
assert_env_unmodified {
# Delete 'COMP_WORDBREAKS' occupying two lines
/COMP_WORDBREAKS=/{N
d}
d
}
}
}; # teardown()