Pledge and unveil redbean's unit tests

This commit is contained in:
Justine Tunney 2022-07-23 05:22:19 -07:00
parent 513a659dd2
commit 31e4b0867b
21 changed files with 44 additions and 6 deletions

View file

@ -38,6 +38,9 @@ end
local function main()
assert(unix.makedirs(tmpdir))
unix.unveil(tmpdir, "rwc")
unix.unveil(nil, nil)
unix.pledge("stdio rpath wpath cpath")
ok, err = pcall(SlurpTest)
if ok then
assert(unix.rmrf(tmpdir))