From 889e1ae13ebb21ff1779bbcc454daffeb6d83ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 25 Oct 2011 23:50:46 +0300 Subject: [PATCH] testsuite: Ignore BASH_REMATCH in env unmodified check. _init_completion uses =~ now so it's going to change just about everywhere. --- test/lib/completions/ant.exp | 1 - test/lib/library.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lib/completions/ant.exp b/test/lib/completions/ant.exp index a5f022ac..acff23ec 100644 --- a/test/lib/completions/ant.exp +++ b/test/lib/completions/ant.exp @@ -6,7 +6,6 @@ proc setup {} { proc teardown {} { assert_env_unmodified { /OLDPWD=/d - /BASH_REMATCH=/d } } diff --git a/test/lib/library.sh b/test/lib/library.sh index 90ecdf9e..290ec813 100644 --- a/test/lib/library.sh +++ b/test/lib/library.sh @@ -22,6 +22,8 @@ diff_env() { /[<>] _=/d # Remove PPID bash variable /[<>] PPID=/d +# Remove BASH_REMATCH bash variable + /[<>] BASH_REMATCH=/d $3" } # diff_env()