develooper Front page | perl.perl5.changes | Postings from August 2022

[Perl/perl5] 6dc66d: retainedlines.t - deterministic results andfixup ...

From:
Yves Orton via perl5-changes
Date:
August 28, 2022 10:24
Subject:
[Perl/perl5] 6dc66d: retainedlines.t - deterministic results andfixup ...
Message ID:
Perl/perl5/push/refs/heads/blead/51634b-6dc66d@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 6dc66d255ce6b487c300b06a5cb75819fd33feb3
      https://github.com/Perl/perl5/commit/6dc66d255ce6b487c300b06a5cb75819fd33feb3
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-08-28 (Sun, 28 Aug 2022)

  Changed paths:
    M t/comp/retainedlines.t

  Log Message:
  -----------
  retainedlines.t - deterministic results and fixup tests under failure

The existing logic is only "correct" when all the tests pass. When they
fail the tests are revealed to be non-determinstic. The other problem is
that once a single test case fails and leaks an entry in the stash the
following tests are all contaminated and trigger "false failures". The
combination makes things look much more broken than they are.

This patch fixes the tests so that they are deterministic and the
"leaking" between test cases is stopped.

See GH Issue #20174





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