# Copyright (C) 2009, 2011-2012 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. . $srcdir/test-lib.sh require_cat require_sed use_local_patch use_tmpdir # ============================================================== # Bug #25970: intuit_diff_type: Assertion `i0 != NONE' failed. cat > f.diff < f check 'patch -f -p1 < f.diff || echo "Status: $?"' < f.diff < f check 'patch -f < f.diff || echo "Status: $?"' < f.diff < f.diff < f.orig : > f check 'patch -f < f.diff || echo "Status: $?"' < f.diff < f check 'patch -p0 -t < f.diff || echo "Status: $?"' < f.diff < f # FIXME: "The next patch would delete the file f" would be better here check 'patch -p0 -t < f.diff || echo "Status: $?"' <