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