mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: work around a failure with dash 0.5.4
* tests/misc/env: Check that the shell can support the operation, before filtering through `env`. Note dash 0.5.5 is unaffected by this issue.
This commit is contained in:
1 parent
c52d220c30
commit
ea1b8bafc0
1 file changed
+2
-1
+2
-1
@@ -143,8 +143,9 @@ chmod +x c=d || framework_failure
|
||||
test "x`env c=d echo fail`" = xfail || fail=1
|
||||
test "x`env -- c=d echo fail`" = xfail || fail=1
|
||||
test "x`env ./c=d echo fail`" = xfail || fail=1
|
||||
test "x$(env sh -c '\c=d echo fail')" = xpass || fail=1
|
||||
test "x$(env sh -c 'exec "$@"' sh c=d echo fail)" = xpass || fail=1
|
||||
test "x$(sh -c '\c=d echo fail')" = xpass && #dash 0.5.4 fails so check first
|
||||
{ test "x$(env sh -c '\c=d echo fail')" = xpass || fail=1; }
|
||||
|
||||
# catch unsetenv failure, broken through coreutils 8.0
|
||||
env -u a=b true && fail=1
|
||||
|
||||
Reference in new issue
Block a user