summaryrefslogtreecommitdiffstats
path: root/test/tvlstr.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-09-30 17:03:12 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-09-30 17:03:12 (GMT)
commit453238e90e1574ef1c15e3c79f7fb3d77920e77c (patch)
tree6aa9407c7a4cb1bd10975205c14ff8b1ce3f0d5e /test/tvlstr.c
parent636cba89e605644c8f094fcc7f951c70cd895a39 (diff)
parentca0c0c3dc83acb7261e607cfee3b3ef04d167188 (diff)
downloadhdf5-453238e90e1574ef1c15e3c79f7fb3d77920e77c.zip
hdf5-453238e90e1574ef1c15e3c79f7fb3d77920e77c.tar.gz
hdf5-453238e90e1574ef1c15e3c79f7fb3d77920e77c.tar.bz2
Merge pull request #2907 in HDFFV/hdf5 from ~BYRN/hdf5_clang_format:hdf5_1_10 to hdf5_1_10
* commit 'ca0c0c3dc83acb7261e607cfee3b3ef04d167188': Merge of clang-format changes from develop
Diffstat (limited to 'test/tvlstr.c')
-rw-r--r--test/tvlstr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/tvlstr.c b/test/tvlstr.c
index 5f715ce..0e0d928 100644
--- a/test/tvlstr.c
+++ b/test/tvlstr.c
@@ -108,12 +108,14 @@ void test_vlstr_free_custom(void *_mem, void *info)
static void
test_vlstrings_basic(void)
{
+ /* Information to write */
const char *wdata[SPACE1_DIM1]= {
"Four score and seven years ago our forefathers brought forth on this continent a new nation,",
"conceived in liberty and dedicated to the proposition that all men are created equal.",
"Now we are engaged in a great civil war,",
"testing whether that nation or any nation so conceived and so dedicated can long endure."
- }; /* Information to write */
+ };
+
char *rdata[SPACE1_DIM1]; /* Information read in */
char *wdata2;
hid_t dataspace, dataset2;
@@ -861,13 +863,12 @@ static void test_write_same_element(void)
hid_t file1, dataset1;
hid_t mspace, fspace, dtype;
hsize_t fdim[] = {SPACE1_DIM1};
- char *val[SPACE1_DIM1] = {"But", "reuniting", "is a", "great joy"};
+ const char *wdata[SPACE1_DIM1] = {"Parting", "is such a", "sweet", "sorrow."};
+ const char *val[SPACE1_DIM1] = {"But", "reuniting", "is a", "great joy"};
hsize_t marray[] = {NUMP};
hsize_t coord[SPACE1_RANK][NUMP];
herr_t ret;
- char *wdata[SPACE1_DIM1] = {"Parting", "is such a", "sweet", "sorrow."};
-
file1 = H5Fcreate(DATAFILE3, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
CHECK(file1, FAIL, "H5Fcreate");