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

Re: [PATCH] rehabilitate some t5302 tests on 32-bit off_t machines

From
Nicolas Pitre <nico@cam.org>
Date
Nov 15, 2007, 18:51 UTC
Message-ID
<alpine.LFD.0.9999.0711151349480.21255@xanadu.home>
In-Reply-To
<200711151938.29617.johannes.sixt@telecom.at>
On Thu, 15 Nov 2007, Johannes Sixt wrote:
Show 31 quoted lines
> On Thursday 15 November 2007 18:24, Nicolas Pitre wrote:
> > Commit 8ed2fca458d085f12c3c6808ef4ddab6aa40ef14 was a bit draconian in
> > skipping certain tests which should be perfectly valid even on platform
> > with a 32-bit off_t.
> >
> > Signed-off-by: Nicolas Pitre <nico@cam.org>
> > ---
> > diff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh
> > index d93abc4..2a2878b 100755
> > --- a/t/t5302-pack-index.sh
> > +++ b/t/t5302-pack-index.sh
> > @@ -129,17 +129,15 @@ test_expect_failure \
> >      '[index v1] 6) newly created pack is BAD !' \
> >      'git verify-pack -v "test-4-${pack1}.pack"'
> >
> > -test "$have_64bits" &&
> >  test_expect_success \
> >      '[index v2] 1) stream pack to repository' \
> >      'rm -f .git/objects/pack/* &&
> > -     git-index-pack --index-version=2,0x40000 --stdin 
> < "test-1-${pack1}.pack" &&
> > +     git-index-pack --index-version=2 --stdin <  "test-1-${pack1}.pack" && 
> git prune-packed &&
> >       git count-objects | ( read nr rest && test "$nr" -eq 1 ) &&
> >       cmp "test-1-${pack1}.pack" ".git/objects/pack/pack-${pack1}.pack" &&
> > -     cmp "test-3-${pack1}.idx"  ".git/objects/pack/pack-${pack1}.idx"'
> > +     cmp "test-2-${pack1}.idx"  ".git/objects/pack/pack-${pack1}.idx"'
> 
> Since you changed this test, I assume that the remaining tests that you put 
> back failed only because this one did something wrong. If so, please mention 
> that in the commit message.

It did nothing wrong. It was simply relying on the product of a previous test that might still be disabled.

Nicolas
Previous: Johannes SixtNext: Junio C Hamano
Message 3 of 5 in “rehabilitate some t5302 tests on 32-bit off_t machines”
  1. rehabilitate some t5302 tests on 32-bit off_t machinesNicolas Pitre, Nov 15, 2007
  2. Johannes SixtNov 15, 2007
  3. Nicolas PitreNov 15, 2007
  4. Junio C HamanoNov 15, 2007
  5. Johannes SixtNov 15, 2007

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.