diff options
Diffstat (limited to 'test/accum.c')
-rw-r--r-- | test/accum.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/accum.c b/test/accum.c index 7a7b576..6f4db2d 100644 --- a/test/accum.c +++ b/test/accum.c @@ -24,7 +24,7 @@ /* Filename */ /* (The file names are the same as the define in accum_swmr_reader.c) */ -const char *FILENAME[] = {"accum", "accum_swmr_big", NULL}; +static const char *FILENAME[] = {"accum", "accum_swmr_big", NULL}; /* The reader forked by test_swmr_write_big() */ #define SWMR_READER "accum_swmr_reader" @@ -2214,7 +2214,7 @@ test_swmr_write_big(hbool_t newest_format) int status; /* Status returned from child process */ /* Fork child process to verify that the data at [1024, 2014] does get written to disk */ - if ((pid = HDfork()) < 0) { + if ((pid = fork()) < 0) { HDperror("fork"); FAIL_STACK_ERROR; } @@ -2227,13 +2227,13 @@ test_swmr_write_big(hbool_t newest_format) char swmr_reader[] = SWMR_READER; char *const new_argv[] = {swmr_reader, NULL}; /* Run the reader */ - status = HDexecv(SWMR_READER, new_argv); + status = execv(SWMR_READER, new_argv); printf("errno from execv = %s\n", HDstrerror(errno)); FAIL_STACK_ERROR; } /* end if */ /* Parent process -- wait for the child process to complete */ - while (pid != HDwaitpid(pid, &status, 0)) + while (pid != waitpid(pid, &status, 0)) /*void*/; /* Check if child process terminates normally and its return value */ |