git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Whit Armstrong
Message 2 of 2 in “t4109-apply-multifrag.sh problem on solaris -- looks like problem w/ solaris patch cmd”
  1. Whit ArmstrongMar 4, 2008
  2. Junio C HamanoMar 4, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.