tree: b8c8667983182a204e185f43e66a08cca007df0b [path history] [tgz]
  1. BUILD.gn
  2. main.cc
  3. README.md
zircon/system/utest/posixio/README.md

POSIX IO Tests

This directory contains API coverage tests of POSIX IO. This is loosely defined as the set of functions that fdio implements. The goal is to test the error cases of each of these functions. It is not a test of the underlying RIO transport or backing filesystems.

Note that POSIX stipulates that “if more than one error occurs in processing a function call, any one of the possible errors may be returned, as the order of detection is undefined.” The tests in this directory test our implementation of POSIX, and not the spec itself. For example, we check that

openat(not_a_directory, "", O_RDONLY)

returns ENOENT, rather than it returning one of ENOENT or ENOTDIR, both of which could apply.