# 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. # Test the --reject-format=FORMAT option . $srcdir/test-lib.sh require_cat require_sed require_gnu_diff use_local_patch use_tmpdir # ============================================================== cat > f.orig < f diff -p -c -L f.orig -L f f.orig f > f.diff check 'patch -f -F0 --no-backup-if-mismatch f < f.diff || echo "Status: $?"' < f.diff check 'patch -f -F0 --no-backup-if-mismatch f < f.diff || echo "Status: $?"' < f.diff check 'patch -f -F0 --no-backup-if-mismatch --reject-format=unified f < f.diff || echo "Status: $?"' < f.diff check 'patch -f -F0 --no-backup-if-mismatch --reject-format=context f < f.diff || echo "Status: $?"' < a echo two > b diff -u -L "a label of a" -L "b label of b" a b > ab.diff mv b a check 'patch -f < ab.diff || echo "Status: $?"' <