Re: t4109-apply-multifrag.sh problem on solaris -- looks like problem w/ solaris patch cmd
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 4, 2008, 19:32 UTC
- Message-ID
- <7v3ar670aj.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <8ec76080803040822n5e463b50sff6639777246de7b@mail.gmail.com>
"Whit Armstrong" <armstrong.whit@gmail.com> writes:
Show 12 quoted lines
> * expecting success: git apply patch1.patch patch2.patch patch3.patch > * ok 4: S = git apply (2) > > * expecting success: cat patch1.patch patch2.patch patch3.patch | patch -p1 > patching file main.c > patching file main.c > patching file main.c > * ok 5: S = patch (2) > ... > > Is the answer to use GNU patch? Or is there a trick to make the > Solaris version of patch work?
If we are reasonably sure that we will not be needing to change these test vectors (and because "git apply" is now solid, I think we are), I think the best way to address this is to prepare a new t/t4109 directory, store the expected output in there, and compare output from "git apply" that is being tested with the precomputed test vectors.