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

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

From:
Yves Orton via perl5-changes
Date:
August 28, 2022 06:32
Subject:
[Perl/perl5] caeca7: retainedlines.t - deterministic results andfixup ...
Message ID:
Perl/perl5/push/refs/heads/yves/fixup_retainedlines_t/080ae9-caeca7@github.com
  Branch: refs/heads/yves/fixup_retainedlines_t
  Home:   https://github.com/Perl/perl5
  Commit: caeca7b73d0183020b12fe65e29326084c20c0c8
      https://github.com/Perl/perl5/commit/caeca7b73d0183020b12fe65e29326084c20c0c8
  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