diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-dir-move.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test-dir-move.sh b/test/test-dir-move.sh new file mode 100755 index 0000000..37182f3 --- /dev/null +++ b/test/test-dir-move.sh @@ -0,0 +1,14 @@ +#!/bin/bash +mkdir d1 +touch d1/f1 +mv d1 d2 +fileuid=`\ls -n1 d2/f1 | awk '{ print $3 }'` +if [ "$fileuid" == "$UID" ] +then + #echo "Passed." + rm -rf d2 + exit 0 +fi +rm -rf d2 +#echo "Failed" +exit 1 |