1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

2006-08-16 Andreas Schwab <schwab@suse.de>

* tests/cp/acl: Don't use non-portable == operator for test.
This commit is contained in:
Jim Meyering
2006-08-16 10:00:07 +00:00
parent 734afd5f62
commit a8914bd966
2 changed files with 6 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ acl1=`cd a && getfacl file | grep -v ':bin:' | grep -v 'mask::'` \
|| framework_failure=1
cp a/file b/ || fail=1
acl2=`cd b && getfacl file` || framework_failure=1
test "$acl1" == "$acl2" || fail=1
test "$acl1" = "$acl2" || fail=1
rm a/file || framework_failure=1
# copy a file, preserving permissions
@@ -43,7 +43,7 @@ setfacl -m user:bin:rw a/file || framework_failure=1
acl1=`cd a && getfacl file` || framework_failure=1
cp -p a/file b/ || fail=1
acl2=`cd b && getfacl file` || framework_failure=1
test "$acl1" == "$acl2" || fail=1
test "$acl1" = "$acl2" || fail=1
if test $framework_failure = 1; then
echo 'failure in testing framework'