diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-08 18:19:31 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-11-08 18:19:31 (GMT) |
commit | 4981e837402428da4da061b8b815f2847cafe557 (patch) | |
tree | 1c77f2bb2457b8b9a300f18b439202f926b6cb95 /test | |
parent | 34eff2aae501e0276f58d2113c02d15b51fca7d8 (diff) | |
parent | 2dd5bbfe167e3e9b6b6ee657a882e24072de4aeb (diff) | |
download | hdf5-4981e837402428da4da061b8b815f2847cafe557.zip hdf5-4981e837402428da4da061b8b815f2847cafe557.tar.gz hdf5-4981e837402428da4da061b8b815f2847cafe557.tar.bz2 |
Merge remote-tracking branch 'hdf5/develop' into add-werror-and-squash-some
to pick up the NetBSD-compatibility changes that I recently merged.
Diffstat (limited to 'test')
-rw-r--r-- | test/accum.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/accum.c b/test/accum.c index 91acf0f..f7d02fd 100644 --- a/test/accum.c +++ b/test/accum.c @@ -1838,7 +1838,6 @@ test_swmr_write_big(hbool_t newest_format) pid_t pid; /* Process ID */ #endif /* H5_HAVE_UNISTD_H */ int status; /* Status returned from child process */ - char *new_argv[] = {NULL}; char *driver = NULL; /* VFD string (from env variable) */ hbool_t api_ctx_pushed = FALSE; /* Whether API context pushed */ @@ -1968,6 +1967,13 @@ test_swmr_write_big(hbool_t newest_format) FAIL_STACK_ERROR; } else if(0 == pid) { /* Child process */ + /* By convention, argv[0] tells the name of program invoked. + * + * execv on NetBSD 8 will actually return EFAULT if there is a + * NULL at argv[0], so we follow the convention unconditionally. + */ + char swmr_reader[] = SWMR_READER; + char * const new_argv[] = {swmr_reader, NULL}; /* Run the reader */ status = HDexecv(SWMR_READER, new_argv); HDprintf("errno from execv = %s\n", strerror(errno)); |