mirror of
https://https.git.savannah.gnu.org/git/patch.git
synced 2026-01-27 18:05:02 +00:00
I have disovered a regression in commit abe92e8010ab ("Prefer idx_t,
ptrdiff_t to lin") while I was running MariaDB tests. The regression is
related to a diff file [1], where the patch fails to apply it with
following error:
patch: **** '---' expected at line 2 of patch
To illustrate the issue, I have attached a git patch containing a
testcase with simplified reproducer.
[1] https://github.com/MariaDB/server/blob/mariadb-10.6.21/mysql-test/suite/innodb/r/innodb-wl5522%2Cstrict_crc32.rdiff file
87 lines
1.9 KiB
Makefile
87 lines
1.9 KiB
Makefile
# Copyright 1989-2025 Free Software Foundation, Inc.
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
## Process this file with automake to produce Makefile.in.
|
|
|
|
TESTS = \
|
|
asymmetric-hunks \
|
|
backup-prefix-suffix \
|
|
bad-filenames \
|
|
bad-usage \
|
|
concat-git-diff \
|
|
context-format \
|
|
copy-rename \
|
|
corrupt-patch \
|
|
corrupt-reject-files \
|
|
create-delete \
|
|
create-directory \
|
|
criss-cross \
|
|
crlf-handling \
|
|
dash-o-append \
|
|
deep-directories \
|
|
ed-style \
|
|
empty-files \
|
|
false-match \
|
|
fifo \
|
|
file-create-modes \
|
|
file-modes \
|
|
filename-choice \
|
|
git-binary-diff \
|
|
git-cleanup \
|
|
garbage \
|
|
global-reject-files \
|
|
hardlinks \
|
|
inname \
|
|
line-numbers \
|
|
merge \
|
|
mangled-numbers-abort \
|
|
mixed-patch-types \
|
|
munged-context-format \
|
|
need-filename \
|
|
no-backup \
|
|
no-mode-change-git-diff \
|
|
no-newline-triggers-assert \
|
|
preserve-c-function-names \
|
|
preserve-mode-and-timestamp \
|
|
quoted-filenames \
|
|
read-only-files \
|
|
regression-abe92e8010ab \
|
|
reject-format \
|
|
remember-backup-files \
|
|
remember-reject-files \
|
|
remove-directories \
|
|
symlinks \
|
|
unmodified-files \
|
|
unusual-blanks
|
|
|
|
XFAIL_TESTS = \
|
|
dash-o-append \
|
|
context-format
|
|
if OS_IS_HAIKU
|
|
XFAIL_TESTS += \
|
|
preserve-mode-and-timestamp
|
|
endif
|
|
|
|
EXTRA_DIST = \
|
|
$(TESTS) \
|
|
test-lib.sh
|
|
|
|
TESTS_ENVIRONMENT = \
|
|
abs_top_builddir=$(abs_top_builddir); \
|
|
export abs_top_builddir;
|
|
|
|
LOG_COMPILER = \
|
|
$(SHELL)
|