Skip to content

Commit

Permalink
Add mirror VFD to serial -Werror CI action (#4753)
Browse files Browse the repository at this point in the history
* Add mirror VFD to serial -Werror CI action

* NUL terminate mirror_vfd.c strings
  • Loading branch information
derobins authored Sep 7, 2024
1 parent 784fa01 commit 66cfc80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main-auto-spc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ jobs:
--enable-cxx \
--disable-fortran \
--enable-java \
--disable-mirror-vfd \
--enable-mirror-vfd \
--enable-direct-vfd \
--disable-ros3-vfd \
--with-szlib=yes
Expand Down Expand Up @@ -491,7 +491,7 @@ jobs:
--enable-cxx \
--disable-fortran \
--enable-java \
--disable-mirror-vfd \
--enable-mirror-vfd \
--enable-direct-vfd \
--disable-ros3-vfd \
--with-szlib=yes
Expand Down
3 changes: 3 additions & 0 deletions test/mirror_vfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ create_mirroring_split_fapl(const char *basename, struct mirrortest_filenames *n
mirror_conf.handshake_port = opts->portno;
if (strncpy(mirror_conf.remote_ip, opts->ip, H5FD_MIRROR_MAX_IP_LEN) == NULL)
TEST_ERROR;
mirror_conf.remote_ip[H5FD_MIRROR_MAX_IP_LEN] = '\0';
if ((splitter_config->wo_fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0)
TEST_ERROR;
if (H5Pset_fapl_mirror(splitter_config->wo_fapl_id, &mirror_conf) < 0)
Expand All @@ -1248,8 +1249,10 @@ create_mirroring_split_fapl(const char *basename, struct mirrortest_filenames *n
/* Set file paths for w/o and logfile */
if (strncpy(splitter_config->wo_path, (const char *)names->wo, H5FD_SPLITTER_PATH_MAX) == NULL)
TEST_ERROR;
splitter_config->wo_path[H5FD_SPLITTER_PATH_MAX] = '\0';
if (strncpy(splitter_config->log_file_path, (const char *)names->log, H5FD_SPLITTER_PATH_MAX) == NULL)
TEST_ERROR;
splitter_config->log_file_path[H5FD_SPLITTER_PATH_MAX] = '\0';

/* Create Splitter FAPL */
if ((ret_value = H5Pcreate(H5P_FILE_ACCESS)) < 0)
Expand Down

0 comments on commit 66cfc80

Please sign in to comment.