diff options
author | Russ Allbery <rra@cpan.org> | 2021-12-27 13:25:22 -0800 |
---|---|---|
committer | Russ Allbery <rra@cpan.org> | 2021-12-27 13:25:22 -0800 |
commit | 5c26c088aa5963a1000a437c291f8542ed947eb4 (patch) | |
tree | 524768db8e243921ed56b54c1ba956df3a638b40 /t/spin/errors.t | |
parent | c4444d640d251e8617c91836a6e8f69fd4560337 (diff) |
Convert App::DocKnot::Spin::Thread to Path::Tiny
Use Path::Tiny for all path manipulation, and use it to avoid
relying on the current working directory for everything but
spinning files from standard input. This will unlock avoiding
worrying about working directories throughout docknot spin.
Diffstat (limited to 't/spin/errors.t')
-rwxr-xr-x | t/spin/errors.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/spin/errors.t b/t/spin/errors.t index d4cc565..c6e1ce6 100755 --- a/t/spin/errors.t +++ b/t/spin/errors.t @@ -43,5 +43,5 @@ my ($stdout, $stderr) = capture { # Simplify the file name, and then check against the expected output. $stderr =~ s{ ^ [^:]+/errors[.]th: }{errors.th:}xmsg; -$stderr =~ s{ (cannot [ ] stat [^:]+): .* }{$1\n}xms; +$stderr =~ s{ (cannot [ ] stat [ ] file [ ]) /[^:]+/([^/:]+) : .* }{$1$2\n}xms; is($stderr, $EXPECTED_ERRORS, 'errors are correct'); |