Skip to content

Commit

Permalink
new architectures do not have open, will use openat
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Cormack <justin@specialbusservice.com>
  • Loading branch information
justincormack committed Jan 11, 2016
1 parent 49d9ff9 commit 5d867d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/linux.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ test.seccomp = {
local pid = S.getpid()
local ofd, err = S.open("/dev/null", "rdonly") -- not allowed
fork_assert(not ofd, "should not run open")
fork_assert(err.errno == nr.SYS.open, "syscall that did not work should be open")
fork_assert(err.errno == nr.SYS.open or err.errno == nr.SYS.openat, "syscall that did not work should be open[at]")
local pid = S.getpid()
S._exit()
else
Expand Down

0 comments on commit 5d867d3

Please sign in to comment.