summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2023-09-26 21:52:31 (GMT)
committerGitHub <noreply@github.com>2023-09-26 21:52:31 (GMT)
commit4233ae69c0d255fdfe09f90c650aada9589d9bf8 (patch)
tree7295431adb908a9972fbc34dc546d86b9059b54a /testpar
parent8e964d4622d655514d5494e9e45ebd06031099c8 (diff)
downloadhdf5-4233ae69c0d255fdfe09f90c650aada9589d9bf8.zip
hdf5-4233ae69c0d255fdfe09f90c650aada9589d9bf8.tar.gz
hdf5-4233ae69c0d255fdfe09f90c650aada9589d9bf8.tar.bz2
Remove `sh` to run bash script. (#3590)
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_subfiling_vfd.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/testpar/t_subfiling_vfd.c b/testpar/t_subfiling_vfd.c
index bdabdf6..0c64bf2 100644
--- a/testpar/t_subfiling_vfd.c
+++ b/testpar/t_subfiling_vfd.c
@@ -1939,12 +1939,11 @@ test_subfiling_h5fuse(void)
SUBF_FILENAME, file_inode);
args[0] = strdup("env");
- args[1] = strdup("sh");
- args[2] = strdup("h5fuse.sh");
- args[3] = strdup("-q");
- args[4] = strdup("-f");
- args[5] = tmp_filename;
- args[6] = NULL;
+ args[1] = strdup("./h5fuse.sh");
+ args[2] = strdup("-q");
+ args[3] = strdup("-f");
+ args[4] = tmp_filename;
+ args[5] = NULL;
/* Call h5fuse script from MPI rank 0 */
execvp("env", args);
@@ -2121,7 +2120,6 @@ main(int argc, char **argv)
bool must_unset_ioc_per_node_env = false;
bool must_unset_ioc_thread_count_env = false;
bool must_unset_config_dir_env = false;
- char *env_value = NULL;
int required = MPI_THREAD_MULTIPLE;
int provided = 0;
@@ -2347,7 +2345,7 @@ main(int argc, char **argv)
must_unset_ioc_thread_count_env = true;
}
- if (!(env_value = getenv(H5FD_SUBFILING_CONFIG_FILE_PREFIX))) {
+ if (NULL == getenv(H5FD_SUBFILING_CONFIG_FILE_PREFIX)) {
int rand_value = 0;
if (MAINPROCESS)