mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: avoid FP failure when run under valgrind
* tests/misc/printenv: Filter out LD_PRELOAD, as the comment said, not LD_LIBRARY.
This commit is contained in:
1 parent
ad61335bf8
commit
45ff91af2e
1 file changed
+2
-2
+2
-2
@@ -23,8 +23,8 @@ print_ver_ printenv
|
||||
# printenv as a builtin, so we must invoke it via "env".
|
||||
# But beware of $_, set by many shells to the last command run.
|
||||
# Also, filter out LD_PRELOAD, which is set when running under valgrind.
|
||||
env | grep -Ev '^(_|LD_LIBRARY=)' > exp || framework_failure
|
||||
env -- printenv | grep -Ev '^(_|LD_LIBRARY=)' > out || fail=1
|
||||
env | grep -Ev '^(_|LD_PRELOAD=)' > exp || framework_failure
|
||||
env -- printenv | grep -Ev '^(_|LD_PRELOAD=)' > out || fail=1
|
||||
compare exp out || fail=1
|
||||
|
||||
# POSIX is clear that environ may, but need not be, sorted.
|
||||
|
||||
Reference in new issue
Block a user