# Copyright (C) 2009 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_diff 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 -u /dev/null f > f.diff check 'patch -f < f.diff || echo "Status: $?"' < f diff -u f /dev/null > f.diff rm f check 'patch -p0 < f.diff || echo "Status: $?"' < f diff -u f /dev/null > f.diff rm f check 'patch -p0 -f < f.diff || echo "Status: $?"' < f diff -u f /dev/null > f.diff rm f check 'patch -f f < f.diff || echo "Status: $?"' < f.orig rm -f f touch f diff -u f.orig f > f.diff check 'patch -f < f.diff || echo "Status: $?"' <