diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2013-06-28 08:33:33 +0200 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2013-07-03 08:39:41 +0200 |
commit | ac953ff80a6c243a941bdeeba6c05ea5f8c54c43 (patch) | |
tree | 8ecebf36b8d0af132f16f7c7010d2c4257262476 /tests/output.at | |
parent | facb910cbdb1f28d2a77f8aac3f514522ee241a6 (diff) | |
download | bison-ac953ff80a6c243a941bdeeba6c05ea5f8c54c43.tar.gz |
tests: fix 'find' portability issues
Reported by Stefano Lattarini.
http://lists.gnu.org/archive/html/bug-bison/2013-06/msg00000.html
* tests/output.at (AT_CHECK_OUTPUT): Use Perl instead.
Diffstat (limited to 'tests/output.at')
-rw-r--r-- | tests/output.at | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/output.at b/tests/output.at index 7dbc3db7..6c98ef7e 100644 --- a/tests/output.at +++ b/tests/output.at @@ -37,10 +37,11 @@ foo: {}; ]AT_BISON_CHECK([$3 $1 $5], 0)[ # Ignore the files non-generated files -]AT_CHECK([find . -type f -and -not -path './$1' -and -not -path './testsuite.log' | - sed 's,\./,,' | - sort | - xargs echo], +]AT_CHECK([[find . -type f | + $PERL -ne ' + s,\./,,; chomp; + push @file, $_ unless m{^($1|testsuite.log)$}; + END { print join (" ", sort @file), "\n" }']], [], [$4 ])[ ]$6[ |