diff options
author | Jean Delvare <jdelvare@suse.de> | 2011-04-04 17:52:35 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2011-04-04 17:52:35 +0200 |
commit | 7fffda1a4deb775d7cca195b97a0c1853d3cfe14 (patch) | |
tree | 2f46ee274585df87b71ec5239b908c374c269a7b | |
parent | 4b38786ab83b3d804ee31c317d85f695dee05252 (diff) | |
download | quilt-7fffda1a4deb775d7cca195b97a0c1853d3cfe14.tar.gz |
New test case for patches attempting to modify files which do not exist.
-rw-r--r-- | quilt.changes | 6 | ||||
-rw-r--r-- | test/no-file-to-patch.test | 23 |
2 files changed, 29 insertions, 0 deletions
diff --git a/quilt.changes b/quilt.changes index 2a9487e..57ab864 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Apr 4 17:50:50 CEST 2011 - jdelvare@suse.de + +- test/no-file-to-patch.test: New test case for patches attempting + to modify files which do not exist. + +------------------------------------------------------------------- Fri Mar 25 19:50:44 CET 2011 - jdelvare@suse.de - configure.ac: Fix test for GNU patch version. diff --git a/test/no-file-to-patch.test b/test/no-file-to-patch.test new file mode 100644 index 0000000..1836e52 --- /dev/null +++ b/test/no-file-to-patch.test @@ -0,0 +1,23 @@ +# Test case for patches which attempt to modify a file which doesn't exist. +# As no part of the patch applies, this triggers a corner case in +# backup-files (restore called but no file to restore.) + +$ mkdir patches +$ cat > patches/series +< one.patch +$ cat > patches/one.patch +< --- a/foo +< +++ b/foo +< @@ -1 +1 @@ +< -foo +< +bar +$ quilt push -q +> Applying patch patches/one.patch +> The text leading up to this was: +> -------------------------- +> |--- a/foo +> |+++ b/foo +> -------------------------- +> No file to patch. Skipping patch. +> 1 out of 1 hunk ignored +> Patch patches/one.patch does not apply (enforce with -f) |