(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:
parent
9fc6ef658b
commit
77dee3a323
@ -6,10 +6,11 @@ proc setup {} {
|
|||||||
|
|
||||||
proc teardown {} {
|
proc teardown {} {
|
||||||
assert_bash_exec {unset args COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS}
|
assert_bash_exec {unset args COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS}
|
||||||
assert_env_unmodified {
|
|
||||||
# Delete 'COMP_WORDBREAKS' occupying two lines
|
# Delete 'COMP_WORDBREAKS' occupying two lines
|
||||||
|
assert_env_unmodified {
|
||||||
/COMP_WORDBREAKS=/{N
|
/COMP_WORDBREAKS=/{N
|
||||||
d}
|
d
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}; # teardown()
|
}; # teardown()
|
||||||
|
|
||||||
|
@ -6,10 +6,11 @@ proc setup {} {
|
|||||||
|
|
||||||
proc teardown {} {
|
proc teardown {} {
|
||||||
assert_bash_exec {unset COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS}
|
assert_bash_exec {unset COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS}
|
||||||
assert_env_unmodified {
|
|
||||||
# Delete 'COMP_WORDBREAKS' occupying two lines
|
# Delete 'COMP_WORDBREAKS' occupying two lines
|
||||||
|
assert_env_unmodified {
|
||||||
/COMP_WORDBREAKS=/{N
|
/COMP_WORDBREAKS=/{N
|
||||||
d}
|
d
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}; # teardown()
|
}; # teardown()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user