summaryrefslogtreecommitdiff
path: root/test/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'test/unistd')
-rw-r--r--test/unistd/errno.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unistd/errno.c b/test/unistd/errno.c
index 746c21d89..cb082b890 100644
--- a/test/unistd/errno.c
+++ b/test/unistd/errno.c
@@ -17,9 +17,9 @@ int main(void)
r_clone = clone(child_fn, NULL, (int) NULL, NULL);
ret_errno = errno;
- if (ret_errno != EINVAL) {
- fprintf(stderr, "clone: res=%d (%d) errno=%d %m\n",
- r_clone, (int) NULL, errno);
+ if (ret_errno != EINVAL || r_clone != -1) {
+ fprintf(stderr, "clone: res=%d (wanted -1) errno=%d (wanted %d)\n",
+ r_clone, errno, EINVAL);
return 1;
}