diff options
Diffstat (limited to 'tests/create-directory')
-rw-r--r-- | tests/create-directory | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/create-directory b/tests/create-directory new file mode 100644 index 0000000..7672766 --- /dev/null +++ b/tests/create-directory @@ -0,0 +1,27 @@ +# Copyright (C) 2010 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# in any medium, are permitted without royalty provided the copyright +# notice and this notice are preserved. + +# Check whether patch correctly creates directories before creating +# new files. + +. $srcdir/test-lib.sh + +use_local_patch +use_tmpdir + +# ============================================================== + +cat > f.diff <<EOF +--- /dev/null ++++ b/newfile +@@ -0,0 +1,2 @@ ++one ++two +EOF + +check 'patch -p0 < f.diff' <<EOF +patching file b/newfile +EOF |