On Sun, Nov 13, 2022 at 08:06:12PM +0100, Alexander Bluhm wrote:
> On Sun, Nov 13, 2022 at 06:50:02PM +0000, Klemens Nanni wrote:
> > $ cd `make show=WRKSRC`
> > $ perl -I blib/lib -I blib/arch t/01header.t
> > Cannot open test.pmat for writing - Permission denied at t/01header.t
> > line 13.
>
> Does this patch help?
>
> OpenBSD pobj permissions may not allow creating temp file in curdir.
>
> Index: t/01header.t
> --- t/01header.t.orig
> +++ t/01header.t
> @@ -6,9 +6,11 @@ use warnings;
> use Test::More;
>
> use Config;
> +use File::Temp 'tempfile';
> use Devel::MAT::Dumper;
>
> -my $DUMPFILE = "test.pmat";
> +my ($DUMPFH, $DUMPFILE) = tempfile("testXXXXXXXXXX",
> + SUFFIX => ".pmat", TMPDIR => 1);
>
> Devel::MAT::Dumper::dump( $DUMPFILE );
> END { unlink $DUMPFILE; }
OK kn
$ make test
===> Regression tests for p5-Devel-MAT-Dumper-0.46
t/00use.t ..... ok
t/01header.t .. ok
t/99pod.t ..... ok
All tests successful.
Files=3, Tests=11, 1 wallclock secs ( 0.05 usr 0.09 sys + 0.68 cusr
0.32 csys = 1.14 CPU)
Result: PASS