mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
minor porting issue wrt versions of touch cmd.
This commit is contained in:
@@ -58,6 +58,11 @@ _cleanup()
|
|||||||
rm -f symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9} symlink_self empty_file
|
rm -f symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9} symlink_self empty_file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_touch()
|
||||||
|
{
|
||||||
|
touch $@ 2>&1 | sed -e "s/creating \`//g" -e "s/'//g"
|
||||||
|
}
|
||||||
|
|
||||||
# get standard environment, filters and checks
|
# get standard environment, filters and checks
|
||||||
. ./common.rc
|
. ./common.rc
|
||||||
. ./common.filter
|
. ./common.filter
|
||||||
@@ -67,7 +72,7 @@ _cleanup()
|
|||||||
cd $TEST_DIR
|
cd $TEST_DIR
|
||||||
|
|
||||||
o=empty_file
|
o=empty_file
|
||||||
touch $o
|
_touch $o
|
||||||
for f in symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
|
for f in symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
|
||||||
do
|
do
|
||||||
ln -s $o $f
|
ln -s $o $f
|
||||||
@@ -78,10 +83,10 @@ ln -s symlink_self symlink_self
|
|||||||
|
|
||||||
echo "*** touch deep symlinks"
|
echo "*** touch deep symlinks"
|
||||||
echo ""
|
echo ""
|
||||||
touch symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
|
_touch symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
|
||||||
echo ""
|
echo ""
|
||||||
echo "*** touch recusive symlinks"
|
echo "*** touch recusive symlinks"
|
||||||
echo ""
|
echo ""
|
||||||
touch symlink_self
|
_touch symlink_self
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user