diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-07 14:07:04 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-07 14:07:04 +0200 |
commit | a8dc8e6f3ee449909ae655b8b67cd1743a6f9026 (patch) | |
tree | 148122777ad6da60528f74244985ec5771490102 /tests/euc-mb | |
parent | 5ef95604757f1b319c728e2c102b1fec39de1ac6 (diff) | |
download | grep-a8dc8e6f3ee449909ae655b8b67cd1743a6f9026.tar.gz |
tests: use init.sh consistently
* tests/euc-mb: Call "path_prepend_ ." on a line by itself,
and with a comment. This makes it so all of the srcdir/init.sh
lines are consistent, project-wide, and so that the addition of "."
to PATH for this test is properly documented.
* tests/sjis-mb: Likewise.
Diffstat (limited to 'tests/euc-mb')
-rw-r--r-- | tests/euc-mb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/euc-mb b/tests/euc-mb index 9994657f..11350da8 100644 --- a/tests/euc-mb +++ b/tests/euc-mb @@ -3,7 +3,10 @@ # too greedily. # Derived from https://savannah.gnu.org/bugs/?23814 : ${srcdir=.} -. "$srcdir/init.sh"; path_prepend_ . ../src +. "$srcdir/init.sh"; path_prepend_ ../src + +# Add "." to PATH for the use of get-mb-cur-max. +path_prepend_ . locale=ja_JP.EUC-JP @@ -16,7 +19,6 @@ euc_grep () { LC_ALL=$locale grep "$pat" } - case $(get-mb-cur-max $locale) in 2|3) ;; *) skip_ 'EUC-JP locale not found' ;; |