tests: avoid new "make distcheck" failure due to newer File::Temp
authorJim Meyering <meyering@redhat.com>
Wed, 22 Apr 2009 19:41:10 +0000 (21:41 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 22 Apr 2009 19:45:24 +0000 (21:45 +0200)
commit2ad7da759490a5680844e1e4b6b4ac1d13b95d3b
tree7ad2d2f195d968207bd85fa51d0a6f864afd67d7
parent4298108f46ff4e216470d3a34b24be3122053d48
tests: avoid new "make distcheck" failure due to newer File::Temp

With newer perl (e.g., Fedora 10's 4:5.10.0-68.fc10), tests/CuTmpdir.pm
stopped removing its temporary directories, with diagnostics like this:
  cannot remove path when cwd is /c/coreutils/tests/misc/seq.tmp-e2up \
  for /c/coreutils/tests/misc/seq.tmp-e2up: at \
  /usr/lib/perl5/5.10.0/File/Temp.pm line 902
Chdir out of the target directory before that code runs:
* tests/CuTmpdir.pm (END): chdir '..'.
(chmod_tree): Remove explicit "chdir $dir".
tests/CuTmpdir.pm