Adjust perl unveil test to test the right thing
authorafresh1 <afresh1@openbsd.org>
Fri, 7 Jul 2023 02:07:35 +0000 (02:07 +0000)
committerafresh1 <afresh1@openbsd.org>
Fri, 7 Jul 2023 02:07:35 +0000 (02:07 +0000)
commit63788854cc0b03b7bcb83c75a8dfe75b7fb6b859
tree66628b2c12957869557ae1b0d0a26a7583a2f151
parent08261913ef8fa7cde1c769ff7a0ac7684cdc3d73
Adjust perl unveil test to test the right thing

Normal users can't write to /dev/random, so the -w test would always
fail for root and succeed for everyone else no matter what unveil
did.  Testing with a temp file at least gives consistent results
no matter the user, even if I don't completely understand why the
-w and -r test results are different.

Noticed by bluhm@
gnu/usr.bin/perl/cpan/OpenBSD-Unveil/t/OpenBSD-Unveil.t