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

« back to all changes in this revision

Viewing changes to tests/filename-choice

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2011-02-06 20:19:30 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110206201930-gxhup50tp3oee4wt
Tags: 2.6.1-1
* New upstream version.
  + Improved CR stripping heuristics. Closes: #484539
  + Fixes: creates files and directories instead of asking for the file
    location. Closes: #568248
* Remove lenny compatibility options -U --unified-reject-files and
 --global-reject-file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2009 Free Software Foundation, Inc.
 
2
#
 
3
# Copying and distribution of this file, with or without modification,
 
4
# in any medium, are permitted without royalty provided the copyright
 
5
# notice and this notice are preserved.
 
6
 
 
7
# Don't recognize hunks before a filename has been specified/seen
 
8
 
 
9
. $srcdir/test-lib.sh
 
10
 
 
11
require_cat
 
12
use_local_patch
 
13
use_tmpdir
 
14
 
 
15
# ==============================================================
 
16
 
 
17
#export GDB=1
 
18
 
 
19
cat > f.diff <<EOF
 
20
--- f
 
21
+++ f.new
 
22
@@ -0,0 +1 @@
 
23
+content
 
24
EOF
 
25
 
 
26
check 'patch -p0 < f.diff' <<EOF
 
27
patching file f
 
28
EOF
 
29
 
 
30
check 'cat f' <<EOF
 
31
content
 
32
EOF