From 7ba5922dca316bc61d908c7d4256c74786483e45 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 5 Feb 2009 10:50:25 -0500 Subject: [svn-r16439] Description: Bring r16435 from revise_chunks branch back to trunk: Expand object copy tests for chunked datasets to include 1-D datasets with an unlimited dimension. (Fix typo in comment for test/links.c) Tested on: FreeBSD/32 6.3 (duty) in debug mode (more thoroughly tested already on revise_chunks branch) --- test/links.c | 2 +- test/objcopy.c | 247 ++++++++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 203 insertions(+), 46 deletions(-) diff --git a/test/links.c b/test/links.c index 11728aa..ec0d21b 100644 --- a/test/links.c +++ b/test/links.c @@ -7587,7 +7587,7 @@ linkinfo(hid_t fapl, hbool_t new_format) H5Fclose (fid); } H5E_END_TRY; return -1; -} /* end ud_hard_links() */ +} /* end linkinfo() */ /*------------------------------------------------------------------------- diff --git a/test/objcopy.c b/test/objcopy.c index 61963b5..c2d71c0 100755 --- a/test/objcopy.c +++ b/test/objcopy.c @@ -73,6 +73,7 @@ const char *FILENAME[] = { #define NAME_DATASET_SIMPLE2 "dataset_simple_copy" #define NAME_DATASET_COMPOUND "dataset_compound" #define NAME_DATASET_CHUNKED "dataset_chunked" +#define NAME_DATASET_CHUNKED2 "dataset_chunked2" #define NAME_DATASET_COMPACT "dataset_compact" #define NAME_DATASET_EXTERNAL "dataset_ext" #define NAME_DATASET_NAMED_DTYPE "dataset_named_dtype" @@ -117,7 +118,7 @@ const char *FILENAME[] = { char src_obj_full_name[215]; /* the full path + name of the object to be copied */ -int num_attributes_g; /* Number of attributes created */ +unsigned num_attributes_g; /* Number of attributes created */ /* Table containing object id and object name */ /* (Used for detecting duplicate objects when comparing groups */ @@ -531,19 +532,20 @@ test_copy_attach_attributes(hid_t loc_id, hid_t type_id) { hid_t aid = -1, sid = -1; char attr_name[ATTR_NAME_LEN]; - int attr_data[2], i = 0; + int attr_data[2]; hsize_t dim1 = 2; + unsigned u; int ret_value = -1; if((sid = H5Screate_simple(1, &dim1, NULL)) < 0 ) goto done; - for (i=0; i