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

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

From:
Yves Orton via perl5-changes
Date:
August 27, 2022 07:01
Subject:
[Perl/perl5] 080ae9: retainedlines.t - deterministic results andfixup ...
Message ID:
Perl/perl5/push/refs/heads/yves/fixup_retainedlines_t/000000-080ae9@github.com
  Branch: refs/heads/yves/fixup_retainedlines_t
  Home:   https://github.com/Perl/perl5
  Commit: 080ae9b8b9629d9ea2fba723d4bbdcc5e530be45
      https://github.com/Perl/perl5/commit/080ae9b8b9629d9ea2fba723d4bbdcc5e530be45
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2022-08-27 (Sat, 27 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.





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