diff options
author | David Young <dyoung@hdfgroup.org> | 2020-05-11 20:17:42 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-11 20:17:42 (GMT) |
commit | 562d5beab2cb2cb6e9bbe4d5a3e4cfb7b45484f7 (patch) | |
tree | 7fe4166e3c46323fba1f0aaaac3b314cff438852 /test/vfd_swmr_zoo_writer.c | |
parent | 8ed6529fc0d43c7c28d98a997f2c7ce9bf35f822 (diff) | |
download | hdf5-562d5beab2cb2cb6e9bbe4d5a3e4cfb7b45484f7.zip hdf5-562d5beab2cb2cb6e9bbe4d5a3e4cfb7b45484f7.tar.gz hdf5-562d5beab2cb2cb6e9bbe4d5a3e4cfb7b45484f7.tar.bz2 |
Look for the personality in the program name *suffix*, because on
`jelly` libtool adds an `lt-` prefix to the program name.
Diffstat (limited to 'test/vfd_swmr_zoo_writer.c')
-rw-r--r-- | test/vfd_swmr_zoo_writer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/vfd_swmr_zoo_writer.c b/test/vfd_swmr_zoo_writer.c index 76165d3..8c04a4a 100644 --- a/test/vfd_swmr_zoo_writer.c +++ b/test/vfd_swmr_zoo_writer.c @@ -233,12 +233,14 @@ main(int argc, char **argv) bool use_vfd_swmr = true; bool print_estack = false; const char *progname = basename(argv[0]); + const char *personality = strstr(progname, "vfd_swmr_zoo_"); estack_state_t es; char step = 'b'; - if (strcmp(progname, "vfd_swmr_zoo_writer") == 0) + if (personality != NULL && strcmp(personality, "vfd_swmr_zoo_writer") == 0) writer = wait_for_signal = true; - else if (strcmp(progname, "vfd_swmr_zoo_reader") == 0) + else if (personality != NULL && + strcmp(personality, "vfd_swmr_zoo_reader") == 0) writer = false; else { errx(EXIT_FAILURE, |