From 77dee3a3238a1874563c6d89a0fda9094255a50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 3 Jan 2010 23:49:19 +0200 Subject: [PATCH] (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. --- test/unit/_count_args.exp | 5 +++-- test/unit/_get_cword.exp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/unit/_count_args.exp b/test/unit/_count_args.exp index fa5417eb..da61bdb6 100644 --- a/test/unit/_count_args.exp +++ b/test/unit/_count_args.exp @@ -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() diff --git a/test/unit/_get_cword.exp b/test/unit/_get_cword.exp index 25e0e8d5..1e6e9bfb 100644 --- a/test/unit/_get_cword.exp +++ b/test/unit/_get_cword.exp @@ -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()