Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 61c36998dd2ab81a3a53358ac76a57e6f5850dc9
      
https://github.com/Perl/perl5/commit/61c36998dd2ab81a3a53358ac76a57e6f5850dc9
  Author: Paul "LeoNerd" Evans <[email protected]>
  Date:   2023-02-07 (Tue, 07 Feb 2023)

  Changed paths:
    M t/test.pl

  Log Message:
  -----------
  Ensure 'ok #' test output includes a location

If no test name is supplied it can be hard to work out where the failure
was, if the output is something like

    ...
    ok 100
    ok 101
    ok 102
    Segmentation fault

There's no easy correlation with the lines in the .t file, short of
counting all the calls.

By adding the caller file/line number, at least we can get a rough idea
of where the test script got to when it failed

    ...
    ok 102 - [at foo.t line 1234]
    Segmentation fault


Reply via email to