tests: cp/perm (usually not run) was failing on systems with SELinux
authorJim Meyering <meyering@redhat.com>
Thu, 24 Apr 2008 10:43:20 +0000 (12:43 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 27 Apr 2008 19:31:32 +0000 (21:31 +0200)
commit8dc387dba567da10e2e90107fd044baaef580145
tree3b768293185e0babb07578202830a4b6d7ddf62d
parentcca6a8d7e525edb232160046d074fff16a76bbb5
tests: cp/perm (usually not run) was failing on systems with SELinux

* tests/cp/perm: Use stat to get the permission string, not ls.
This test was run only when RUN_VERY_EXPENSIVE_TESTS=yes was set
in the environment.  It would fail on SELinux-enable systems
because ls-generated permission strings would not match, e.g.,
"test _-rw-r--r--+ = _-rw-r--r--" would fail.
tests/cp/perm