Userland test changes.

This commit is contained in:
Geoffrey Challen
2017-02-09 09:51:39 -05:00
parent 4c9b79877e
commit 9986e07810
12 changed files with 67 additions and 19 deletions

View File

@@ -62,7 +62,7 @@ open_empty(void)
report_begin("open empty string");
rv = open("", O_RDONLY);
report_check2(rv, errno, 0, EINVAL);
report_check(rv, errno, EINVAL);
if (rv>=0) {
close(rv);
}

View File

@@ -68,6 +68,11 @@ pipe_unaligned(void)
rv = pipe((int *)ptr);
report_survival(rv, errno);
if (rv == 0) {
memmove(fds, ptr, 2*sizeof(int));
close(fds[0]);
close(fds[1]);
}
}
void