20 {
R,
S, 4, {2, 3, 5, 7}},
21 {
W,
S, 3, {11, 13, 17}},
26 mockIOInit(&mio, ops,
sizeof(ops) /
sizeof(ops[0]));
29 for (i = 0; i <
sizeof(buf); ++i) {
34 for (i = 0; i <
sizeof(buf); ++i) {
40 for (i = 0; i <
sizeof(buf); ++i) {
50 for (i = 4; i <
sizeof(buf); ++i) {
91 mockIOInit(&mio, ops,
sizeof(ops) /
sizeof(ops[0]));
101 mockIOInit(&mio, ops,
sizeof(ops) /
sizeof(ops[0]));
125 mockIOInit(&mio, ops,
sizeof(ops) /
sizeof(ops[0]));
135 mockIOInit(&mio, ops,
sizeof(ops) /
sizeof(ops[0]));
144 mockIOInit(&mio, ops,
sizeof(ops) /
sizeof(ops[0]));
154 int main(
int argc,
char *argv[])
157 fprintf(stderr,
"Usage: %s test_id\n", argv[0]);
161 switch (argv[1][0]) {
172 fprintf(stderr,
"Invalid test_id: %s \n", argv[1]);
#define HIPC_IMG_ALLOCSIZE
static void test_mockio(void)
int mockIOCheckCompletion(struct MockIO *mio_p)
static void test_mockIORead_err(void)
void mockIOInit(struct MockIO *mio_p, const struct MockIOOp *ops, const unsigned int nops)
enum MOCK_errno mock_errno
static void test_mockIOWrite_err(void)
enum HIPC_errno mockIOWrite(struct MockIO *mio_p, const void *buf, const size_t size)
enum HIPC_errno mockIORead(struct MockIO *mio_p, void *buf, const size_t size)
int main(int argc, char *argv[])