summaryrefslogtreecommitdiff
path: root/testsuite/merge.test
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-06-17 15:59:47 -0700
committerWayne Davison <wayned@samba.org>2008-06-17 15:59:47 -0700
commit844810d6099d5c7fc837ea1bad4470cfdd801c66 (patch)
tree05faff45b552f5a93425db6f480bdce9b405b750 /testsuite/merge.test
parent67347196b13941fdf455517855481875ccf21152 (diff)
downloadrsync-844810d6099d5c7fc837ea1bad4470cfdd801c66.tar.gz
Avoid problems with timestamp rounding that cp -p and touch -r may do.
Diffstat (limited to 'testsuite/merge.test')
-rw-r--r--testsuite/merge.test16
1 files changed, 8 insertions, 8 deletions
diff --git a/testsuite/merge.test b/testsuite/merge.test
index 1720a181..4e76102d 100644
--- a/testsuite/merge.test
+++ b/testsuite/merge.test
@@ -19,15 +19,15 @@ mkdir from2/sub1 from3/sub1
mkdir from3/sub2 from1/dir-and-not-dir
mkdir chk chk/sub1 chk/sub2 chk/dir-and-not-dir
echo "one" >from1/one
-cp -p from1/one from2/one
-cp -p from1/one from3/one
+cp_touch from1/one from2/one
+cp_touch from1/one from3/one
echo "two" >from1/two
echo "three" >from2/three
echo "four" >from3/four
echo "five" >from1/five
echo "six" >from3/six
echo "sub1" >from2/sub1/uno
-cp -p from2/sub1/uno from3/sub1/uno
+cp_touch from2/sub1/uno from3/sub1/uno
echo "sub2" >from3/sub1/dos
echo "sub3" >from2/sub1/tres
echo "subby" >from3/sub2/subby
@@ -36,11 +36,11 @@ echo "not-dir" >from3/dir-and-not-dir
echo "arg-test" >deep/arg-test
echo "shallow" >shallow
-cp -p from1/one from1/two from2/three from3/four from1/five from3/six chk
-cp -p deep/arg-test shallow chk
-cp -p from1/dir-and-not-dir/inside chk/dir-and-not-dir
-cp -p from2/sub1/uno from3/sub1/dos from2/sub1/tres chk/sub1
-cp -p from3/sub2/subby chk/sub2
+cp_touch from1/one from1/two from2/three from3/four from1/five from3/six chk
+cp_touch deep/arg-test shallow chk
+cp_touch from1/dir-and-not-dir/inside chk/dir-and-not-dir
+cp_touch from2/sub1/uno from3/sub1/dos from2/sub1/tres chk/sub1
+cp_touch from3/sub2/subby chk/sub2
# Make sure that time has moved on.
sleep 1