# 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: $?"' < target cat > p.diff < target cat > p.diff < target if ! test -s target; then echo "Failed to printf a null character; skipping this test" else cat > p.diff < target cat > p.diff < target check 'patch -p0 -E < p.diff || echo status: $?' < target cat > p.diff < target check 'patch -p1 -b --posix -f < p.diff || echo status: $?' <