]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: avoid a FP on aarch64 when comparing env/printenv output
authorBernhard Voelker <mail@bernhard-voelker.de>
Tue, 3 Feb 2015 00:52:04 +0000 (01:52 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Tue, 3 Feb 2015 01:19:54 +0000 (02:19 +0100)
commitbfb4f5c8b791fdcc3cdba87a5182fc684fa8cd24
treefb1a8080816a2492da65d314998a9f786d3d870f
parentb3ecf3b1b219a2ccd17999561fd7e4fe64efac4b
tests: avoid a FP on aarch64 when comparing env/printenv output

The following test fails on aarch64 on openSUSE's OpenBuildService
due to glibc's execvp reversing the pointers of 'environ', i.e.,
the output of "env|tac" equals "env env" on that platform.

* tests/misc/printenv.sh: Use 'env env' to work around the behavior
on that platform.
While at it, fix the grep pattern which suppressed all environment
variables starting with an underscore "_" instead of "$_" (and
"$LD_PRELOAD") only.
tests/misc/printenv.sh