Index: patch-2.6.1.107-77e1/tests/Makefile.am =================================================================== --- patch-2.6.1.107-77e1.orig/tests/Makefile.am +++ patch-2.6.1.107-77e1/tests/Makefile.am @@ -22,6 +22,7 @@ TESTS = \ copy-rename \ corrupt-reject-files \ create-delete \ + create-directory \ criss-cross \ crlf-handling \ dash-o-append \ Index: patch-2.6.1.107-77e1/tests/create-directory =================================================================== --- /dev/null +++ patch-2.6.1.107-77e1/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 <