[uClibc-cvs] svn commit: trunk/uClibc/test/unistd
vapier at uclibc.org
vapier at uclibc.org
Thu Jul 28 03:59:11 UTC 2005
Author: vapier
Date: 2005-07-27 21:59:10 -0600 (Wed, 27 Jul 2005)
New Revision: 10939
Log:
check the return value of the clone call too
Modified:
trunk/uClibc/test/unistd/errno.c
Changeset:
Modified: trunk/uClibc/test/unistd/errno.c
===================================================================
--- trunk/uClibc/test/unistd/errno.c 2005-07-28 03:58:43 UTC (rev 10938)
+++ trunk/uClibc/test/unistd/errno.c 2005-07-28 03:59:10 UTC (rev 10939)
@@ -17,9 +17,9 @@
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;
}
More information about the uClibc-cvs
mailing list