test0 tests now don't fork, they compare read/write strings.

This commit is contained in:
Bahadir Balban
2008-09-17 09:51:52 +03:00
parent 86e752be59
commit 05e9b43722
2 changed files with 10 additions and 6 deletions

View File

@@ -56,6 +56,8 @@ int fileio2(void)
printf("%d: Read: %d bytes from file.\n", tid, cnt);
if (cnt) {
printf("%d: Read string: %s\n", tid, buf);
if (strcmp(buf, str))
return -1;
}
printf("%d: close.\n", tid);
@@ -104,6 +106,8 @@ int fileio(void)
printf("%d: Read: %d bytes from file.\n", tid, cnt);
if (cnt) {
printf("%d: Read string: %s\n", tid, buf);
if (strcmp(buf, str))
return -1;
}
printf("%d: close.\n", tid);