diff options
author | Jim Meyering <meyering@fb.com> | 2023-01-05 22:44:07 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2023-01-05 22:44:07 -0800 |
commit | cc41598038b2f3e10e1c1f5c72e887e34abaf5e3 (patch) | |
tree | 962f9d943cd61864e4cb1fe4423280526f468ff3 | |
parent | f5f2a237b2e212539611bf39157b22e77d0cdd25 (diff) | |
download | diffutils-cc41598038b2f3e10e1c1f5c72e887e34abaf5e3.tar.gz |
tests: avoid large-subopt XPASS on systems without perl
* tests/large-subopt: Use $PERL, rather than hard-coding "perl".
* bootstrap.conf (gnulib_modules): Add "perl" to the list.
Reported by Bruno Haible in
https://lists.gnu.org/r/diffutils-devel/2023-01/msg00000.html
-rw-r--r-- | bootstrap.conf | 1 | ||||
-rw-r--r-- | tests/large-subopt | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index f2ac426..7670cae 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -64,6 +64,7 @@ mempcpy mkstemp mktime nstrftime +perl progname propername raise diff --git a/tests/large-subopt b/tests/large-subopt index 1802df2..74d05da 100644 --- a/tests/large-subopt +++ b/tests/large-subopt @@ -18,7 +18,7 @@ fail=0 diff -u \ "$abs_top_srcdir/tests/large-subopt.in1" \ "$abs_top_srcdir/tests/large-subopt.in2" \ - | perl -n0 -e \ + | $PERL -n0 -e \ '/\n-2\n(\+L: 361\n){2}\+2\n/ and do {$e=1; last}; END{exit !$e}' \ && fail=1 |