develooper Front page | perl.perl5.porters | Postings from February 2020

Re: How to bisect for first commit at which a test passes?

Thread Previous | Thread Next
From:
hv
Date:
February 13, 2020 21:15
Subject:
Re: How to bisect for first commit at which a test passes?
Message ID:
202002132057.01DKuuP03138@crypt.org
James E Keenan <jkeenan@pobox.com> wrote:
:$ sh ./Configure -des -Dusedevel -Duseithreads \ 
:                      -Dcc="g++7" \ 
:-Accflags="-Wl,-rpath=/usr/local/lib/gcc7" \ 
:-Aldflags="-Wl,-rpath=/usr/local/lib/gcc7" \ 

After rather more back and forth, it turned out after all to be rather
simple - it goes wrong only if you build perl with -Duseithreads, so
you have to pass that flag to bisect.pl as well. Without that the
script does not die, so the bisector is correctly reporting that it
is not failing as expected at the start revision.

As such, this invocation:
  Porting/bisect.pl --start=a3c77565 --end=a06a4d45 \
    -Dcc="g++7" -Accflags="-Wl,-rpath=/usr/local/lib/gcc7" \
    -Aldflags="-Wl,-rpath=/usr/local/lib/gcc7" -Duseithreads \
    --expect-fail --target t/op/sprintf2.t
.. successfully finds a06a4d45 as the first commit succeeding, and I'm
sure would also find it for a wider range such as v5.31.2 to v5.31.3.

Hugo

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About