Some more enhancements to test0

- Only the topmost parent prints pass messages. Any failed child can print fail message.
- Added testing of 16 forked threads doing file create/read/write/close and
  16 forked x 4 cloned = 64 threads spawning/exiting
This commit is contained in:
Bahadir Balban
2009-05-12 12:31:25 +03:00
parent 8528e2e1ba
commit 324481a334
9 changed files with 33 additions and 21 deletions

View File

@@ -36,7 +36,8 @@ static inline int l4_open(const char *pathname, int flags, mode_t mode)
}
/* Check if syscall itself was successful */
if ((fd = l4_get_retval()) < 0) {
printf("%s: OPEN Error: %d.\n", __FUNCTION__, fd);
printf("%s: OPEN Error: %d, for path %s\n",
__FUNCTION__, fd, pathname);
return fd;
}
return fd;