# git failure on Solaris t3701-add-interactive.sh -- git version 5cc8f372509298d13632d8784bc851a587937550

4 messages from 2008-03-25 to 2008-04-01. Participants: Whit Armstrong, Jeff King.
Thread: https://gitlist.dev/t/12855

## Whit Armstrong, 2008-03-25 12:34

Subject: git failure on Solaris t3701-add-interactive.sh -- git version 5cc8f372509298d13632d8784bc851a587937550
Message-ID: <8ec76080803250534x5373b0c6p6165a7dc17971e4a@mail.gmail.com>
URL: https://gitlist.dev/e/8ec76080803250534x5373b0c6p6165a7dc17971e4a%40mail.gmail.com
In-Reply-To: <8ec76080803250529i5765cc9ar2d6fc3356800cb14@mail.gmail.com>

```
on Solaris 5.9:


xs5-trd-p1.grn:warmstro> bash t3701-add-interactive.sh -i -v
* expecting success:
        echo content >file &&
        git add file &&
        echo more >>file &&
         echo lines >>file

*   ok 1: setup (initial)

* expecting success:
        git add -i </dev/null >output &&
        grep "+1/-0 *+2/-0 file" output

Can't use an undefined value as filehandle reference at
/home/warmstro/dvl.whit/git/t/../git-add--interactive line 53.
 * FAIL 2: status works (initial)

                git add -i </dev/null >output &&
                grep "+1/-0 *+2/-0 file" output

xs5-trd-p1.grn:warmstro>


and more info from  bash -x t3701-add-interactive.sh -i -v:


++ expr ./t3701-add-interactive.sh : '.*/\(t[0-9]*\)-[^/]*$'
+ this_test=t3701
++ expr 1 + 1
+ this_test=t3701.2
+ to_skip=
+ false
+ say 'expecting success:
        git add -i </dev/null >output &&
         grep "+1/-0 *+2/-0 file" output
'
+ say_color info 'expecting success:
        git add -i </dev/null >output &&
        grep "+1/-0 *+2/-0 file" output
'
 + test -z info
+ shift
+ echo '* expecting success:
        git add -i </dev/null >output &&
        grep "+1/-0 *+2/-0 file" output
'
* expecting success:
        git add -i </dev/null >output &&
         grep "+1/-0 *+2/-0 file" output

+ test_run_ '
        git add -i </dev/null >output &&
        grep "+1/-0 *+2/-0 file" output
'
+ eval '
        git add -i </dev/null >output &&
         grep "+1/-0 *+2/-0 file" output
'
++ git add -i
Can't use an undefined value as filehandle reference at
/home/warmstro/dvl.whit/git/t/../git-add--interactive line 53.
+ eval_ret=227
 + return 0
+ '[' 0 = 0 -a 227 = 0 ']'
+ test_failure_ 'status works (initial)' '
        git add -i </dev/null >output &&
        grep "+1/-0 *+2/-0 file" output
 '
++ expr 1 + 1
+ test_count=2
++ expr 0 + 1
+ test_failure=1
+ say_color error 'FAIL 2: status works (initial)'
+ test -z error
+ shift
+ echo '* FAIL 2: status works (initial)'
 * FAIL 2: status works (initial)
+ shift
+ echo '
        git add -i </dev/null >output &&
        grep "+1/-0 *+2/-0 file" output
'
+ sed -e 's/^/  /'

                git add -i </dev/null >output &&
                 grep "+1/-0 *+2/-0 file" output

+ test t = ''
+ trap - exit
+ exit 1
xs5-trd-p1.grn:warmstro>

```

## Jeff King, 2008-03-25 23:40

Subject: Re: git failure on Solaris t3701-add-interactive.sh -- git version 5cc8f372509298d13632d8784bc851a587937550
Message-ID: <20080325234033.GA18348@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20080325234033.GA18348%40coredump.intra.peff.net
In-Reply-To: <8ec76080803250534x5373b0c6p6165a7dc17971e4a@mail.gmail.com>

```
On Tue, Mar 25, 2008 at 08:34:20AM -0400, Whit Armstrong wrote:

> on Solaris 5.9:
> [...]
> xs5-trd-p1.grn:warmstro> bash t3701-add-interactive.sh -i -v
> [...]
> * expecting success:
>         git add -i </dev/null >output &&
>         grep "+1/-0 *+2/-0 file" output
> 
> Can't use an undefined value as filehandle reference at
> /home/warmstro/dvl.whit/git/t/../git-add--interactive line 53.

I can't even get this far on my Solaris 5.8 box. Presumably it is a
problem of having an older perl binary. What perl version do you have?

-Peff

```

## Jeff King, 2008-03-26 18:34

Subject: Re: git failure on Solaris t3701-add-interactive.sh -- git version 5cc8f372509298d13632d8784bc851a587937550
Message-ID: <20080326183453.GA4471@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20080326183453.GA4471%40coredump.intra.peff.net
In-Reply-To: <8ec76080803260519s6088b773qc3a9cf982993f53@mail.gmail.com>

```
On Wed, Mar 26, 2008 at 08:19:48AM -0400, Whit Armstrong wrote:

> You mean for Solaris 5.8, you don't get as far as this test?  All the
> systems here are on Solaris 5.9, but they are years away from
> upgrading to Solaris 10.

I mean when I run t3701, add-interactive barfs way before the error you
mention. It doesn't even like the 'our' keyword.

> we have perl 5.6.1 on our systems:

Ah, that's recent-ish. Solaris 5.8 comes with perl 5.005. I think in
general git tries to target perl 5.6.

I'll see if I can dig up perl 5.6.1 to do some testing on.

-Peff

```

## Whit Armstrong, 2008-04-01 07:02

Subject: Re: git failure on Solaris t3701-add-interactive.sh -- git version 5cc8f372509298d13632d8784bc851a587937550
Message-ID: <8ec76080804010002x79aa003ala9a1f66147157b85@mail.gmail.com>
URL: https://gitlist.dev/e/8ec76080804010002x79aa003ala9a1f66147157b85%40mail.gmail.com
In-Reply-To: <20080331072713.GA11490@coredump.intra.peff.net>

```
Peff,

Thanks for looking.  I'm sure you have been busy preparing for the next release.

Sorry for the list omission on the last email, it was an oversight.

I just did the test suite on origin/next, so this test run was done
with git b0a67ea72573692994090d92e300cddaf20ac69d.

and here is the list of tests that are failing:

#       deleted:    t/t3701-add-interactive.sh
#       deleted:    t/t3900-i18n-commit.sh
#       deleted:    t/t3901-i18n-patch.sh
#       deleted:    t/t4116-apply-reverse.sh
#       deleted:    t/t4200-rerere.sh
#       deleted:    t/t5000-tar-tree.sh
#       deleted:    t/t7400-submodule-basic.sh
#       deleted:    t/t7401-submodule-summary.sh
#       deleted:    t/t7501-commit.sh
#       deleted:    t/t9001-send-email.sh

I'll send -v -i details on the ones that fail for me but not for you.

-Whit



On Mon, Mar 31, 2008 at 3:27 AM, Jeff King <peff@peff.net> wrote:
> On Wed, Mar 26, 2008 at 04:57:38PM -0400, Whit Armstrong wrote:
>
> > Peff,
>
> [I think the list might benefit from our discussion; did you mean to
> respond off-list?]
>
> Sorry for the slow response...I haven't had much time to look at this
> stuff lately. This is an "off the top of my head" response; a lot of my
> points will need followup patches and testing.
>
>
> > I have failures with the following tests on our Solaris setup.
> > However, I did use a more recent version of perl (5.10 installed in my
> > home dir) with these tests.
> >
> > #       deleted:    t/t3900-i18n-commit.sh
> > #       deleted:    t/t3901-i18n-patch.sh
>
> I think something is lacking in the Japanese charset support on Solaris.
> Maybe there is some extra package that needs to be installed. I haven't
> looked much further.
>
>
> > #       deleted:    t/t4116-apply-reverse.sh
>
> This is due to a warning from Solaris tar, which doesn't like the pax
> field in our generated tarfile. I think it's just being used to make a
> copy of the tree, so we can probably get around it by using
> git-checkout-index directly. More portable, and should be faster.
>
>
> > #       deleted:    t/t4118-apply-empty-context.sh
>
> I don't have this in my list of broken tests. Might just be an
> oversight on my part, though.
>
>
> > #       deleted:    t/t4200-rerere.sh
>
> This definitely passed for me, since I submitted fixes. But there was
> much discussion afterwards, so one of the followups might have re-broken
> it.
>
>
> > #       deleted:    t/t8001-annotate.sh
>
> I'm pretty sure this passed for me.
>
>
> > #       deleted:    t/t9001-send-email.sh
>
> I couldn't even try this because of the perl version issues.
>
>
> > this is using origin/pu -- commit 9606c1c61e3a5b5acbb3f3dcccea37e00bcca145
>
> Yikes. I would stick with 'next' at the most. Junio makes sure all tests
> work (on Linux) on 'master', and I think 'next'. But 'pu' is a no-man's
> land of quality.
>
>
> > Let me know if you want test.sh -v -i output for these.
>
> For the ones that I marked as "passed", sure. For the other ones, either
> we have the same failure, in which case I can generate it myself, or we
> don't, in which case I need to fix my bug before your bug will make any
> sense to me. :)
>
>
> > Also, is there a way to ask "make test" to continue the test suite
> > from a certain point?  I kept deleting the test that was failing, and
> > then restarting the whole "make test," which I'm sure you know is
> > quite long to run from start to finish.
>
> No, there isn't. During my test-fixing spree, I just did something like:
>
>  make test
>  # oops, we failed in 3900; continue after
>  make test t390[123]*.sh t4*.sh t5*.sh ...
>
> and so forth, shrinking my commandline each time. Hack-ish, but what
> we're doing is probably not worth implementing the 'resume at last
> failure' feature (especially because most of the time you are fixing
> _git_, not the test scripts, so it is a good idea to run the whole
> suite).
>
> What I'd really like is the ability to run the test scripts in parallel;
> test-lib.sh would need to put each in its own directory.
>
> -Peff
>

```
