Added conditional configuration flag -c to build.py

This commit is contained in:
Bahadir Balban
2009-10-08 19:07:59 +03:00
parent d888267f58
commit 7e38e70f93
5 changed files with 11 additions and 7 deletions

View File

@@ -23,7 +23,8 @@ int fileio(void)
memset(filename, 0, 128);
sprintf(filename, "/home/bahadir/newfile%d.txt", tid);
if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, S_IRWXU)) < 0) {
test_printf("OPEN: %d", errno);
test_printf("OPEN: %d", -errno);
test_printf("While trying to open %s\n", filename);
goto out_err;
}
test_printf("%d: Created %s\n", tid, filename);

View File

@@ -17,7 +17,7 @@ int forktest(void)
/* 16 forks */
for (int i = 0; i < 4; i++) {
for (int i = 0; i < 1; i++) {
test_printf("%d: Forking...\n", getpid());
if (fork() < 0)
goto out_err;