Skip to content

Commit

Permalink
Show errors from tests run via do
Browse files Browse the repository at this point in the history
Two of the test scripts run t/input_output.t using do.  That test script
may fail with an exception, so the do calls should check for this and
rethrow the error.  Ensure t/input_output.t returns a true value so the
check can be reliable.

Fixes #206
  • Loading branch information
haarg authored and xdg committed Jul 7, 2018
1 parent b4bddc0 commit b1bce06
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Revision history for Path-Tiny
allows detecting and warning, for example, with the Luster filesystem
on Linux.

[Tests]

- Improve reliability and diagnostics of tests run via 'do'.

0.104 2017-02-17 07:17:00-05:00 America/New_York

- No changes from 0.103-TRIAL.
Expand Down
2 changes: 2 additions & 0 deletions t/input_output.t
Original file line number Diff line number Diff line change
Expand Up @@ -552,4 +552,6 @@ subtest "edit_lines" => sub {
};

done_testing;

1;
# COPYRIGHT
2 changes: 1 addition & 1 deletion t/input_output_no_PU_UU.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ use lib map {

note "Hiding Unicode::UTF8 and PerlIO::utf8_strict";

do "./t/input_output.t";
do "./t/input_output.t" or die $@ || $!;

# COPYRIGHT
2 changes: 1 addition & 1 deletion t/input_output_no_UU.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ use lib map {

note "Hiding Unicode::UTF8";

do "./t/input_output.t";
do "./t/input_output.t" or die $@ || $!;

# COPYRIGHT

0 comments on commit b1bce06

Please sign in to comment.