git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Solaris test t5500 race condition
@ 2006-04-14  3:17 Peter Eriksen
  2006-04-14  5:03 ` Jason Riedy
  2006-04-14  5:34 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Eriksen @ 2006-04-14  3:17 UTC (permalink / raw)
  To: git

Hello,

I've found a race in t5500-fetch-pack.sh.  The problem is the way the
number of unpacked objects are counted:

    pack_count=$(grep Unpacking log.txt|tr -dc "0-9")

It just concatenates all the digits on the line with "Unpacking" in it. 
This is the output I get on Solaris:

    Generating pack...
    Done counting 3 objects.
    Deltifying 3 objects.
      33% (1/3) done^M  66% (2/3) done^M 100% (3/3) done
    Total 3Unpacking , written 33 objects          <------------
     (delta 0), reused 0 (delta 0)
    11fa2f0cb58ed7f02dbd5ac75ed82a53fae62a7b refs/heads/A

The marked line is written as a joyful duet between these
two functions:

    unpack-objects.c:   fprintf(stderr, "Unpacking %d objects\n",
                                nr_objects);

    pack-objects.c:     fprintf(stderr, "Total %d, written %d 
                                (delta %d), reused %d (delta %d)\n",

I can't think of a good solution right now.

Regards,

Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-14 16:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-14  3:17 Solaris test t5500 race condition Peter Eriksen
2006-04-14  5:03 ` Jason Riedy
2006-04-14  5:34 ` Junio C Hamano
2006-04-14 11:53   ` Peter Eriksen
2006-04-14 16:41     ` Jason Riedy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).