~ubuntu-branches/ubuntu/trusty/patch/trusty-security

« back to all changes in this revision

Viewing changes to tests/preserve-mode-and-timestamp

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-01-03 17:34:45 UTC
  • mto: (6.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20130103173445-5vf8qmnfgd7ug67h
Tags: upstream-2.7.1
ImportĀ upstreamĀ versionĀ 2.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
 
1
# Copyright (C) 2009, 2011-2012 Free Software Foundation, Inc.
2
2
#
3
3
# Copying and distribution of this file, with or without modification,
4
4
# in any medium, are permitted without royalty provided the copyright
102
102
check 'ls -l f.rej | sed "s,\(..........\).*,\1,"' <<EOF
103
103
-rw-r-----
104
104
EOF
 
105
 
 
106
# ==============================================================
 
107
 
 
108
cat > f.diff <<EOF
 
109
--- /dev/null
 
110
+++ b/f $timestamp2
 
111
@@ -0,0 +1 @@
 
112
+one
 
113
EOF
 
114
 
 
115
rm -f f
 
116
 
 
117
check 'patch -p1 --backup --set-utc < f.diff' <<EOF
 
118
patching file f
 
119
EOF
 
120
 
 
121
ncheck 'test ! \( f -ot f.compare -o f -nt f.compare \) || echo "timstamp differs"'