mirror of
https://github.com/drasko/codezero.git
synced 2026-04-17 17:29:04 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user