diff options
| author | Laura Peskin <pesk@google.com> | 2022-11-11 14:29:03 -0800 |
|---|---|---|
| committer | glpesk <114444708+glpesk@users.noreply.github.com> | 2022-11-17 14:51:18 -0800 |
| commit | 5bb7001449cd1dae6cbff2d660374d6d17cbd2c4 (patch) | |
| tree | 785850b16d345640c0d5e314a8df5f29f6f700e4 /pkg | |
| parent | 4ba8ab94b872006785aeb11e8c22c9dd578b3d1e (diff) | |
sys/fuchsia: add test for vmar syscall descriptions
Also made some small updates to the vmar descriptions:
- In a few places, a `len` arg was incorrectly tagged as the length
of another arg when it actually represents a region size; fixed.
- The `buffer` and `buffer_size` args to `zx_vmar_op_range` must
be null; replaced with constants.
- Added a `zx_vaddr` resource type wrapping `intptr` and used it
in place of `vma`, since it's not clear how to use `vma` as the
pointee type of an outptr in a program.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/runtest/run.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go index 87acf4565..952a2e1e6 100644 --- a/pkg/runtest/run.go +++ b/pkg/runtest/run.go @@ -305,10 +305,13 @@ func parseProg(target *prog.Target, dir, filename string) (*prog.Prog, map[strin "EOPNOTSUPP": 95, // Fuchsia specific errors. + "ZX_ERR_NO_RESOURCES": 3, + "ZX_ERR_INVALID_ARGS": 10, "ZX_ERR_BAD_HANDLE": 11, "ZX_ERR_BAD_STATE": 20, "ZX_ERR_TIMED_OUT": 21, "ZX_ERR_ALREADY_EXISTS": 26, + "ZX_ERR_ACCESS_DENIED": 30, } info := &ipc.ProgInfo{Calls: make([]ipc.CallInfo, len(p.Calls))} for i, call := range p.Calls { |
