summaryrefslogtreecommitdiffstats
path: root/c++/test/dsets.cpp
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-04-14 21:39:46 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-04-14 21:39:46 (GMT)
commit11cf4bacb757be368697e0550a073aac4f6abe20 (patch)
tree031bf10cc2992ebaa086c5a96800346fde0c8153 /c++/test/dsets.cpp
parent3ee41cba2928a5cf580c267d744ca4a9e1fde689 (diff)
downloadhdf5-11cf4bacb757be368697e0550a073aac4f6abe20.zip
hdf5-11cf4bacb757be368697e0550a073aac4f6abe20.tar.gz
hdf5-11cf4bacb757be368697e0550a073aac4f6abe20.tar.bz2
[svn-r12252] Purpose: Maintenance
Description: Brought VMS changes back (very minor): In tfile.cpp file some tests for open and creation should fail on UNIX, but this is not true on VMS since it has versioning of the files. In dsets.cpp std::count was used, but it is not available on VMS; also VMS didn't like "bogus" name for the filter function. Solution: Used H5_HAVE_FILE_VERSIONS and H5_VMS variables to control the tests; replaced "bogus" function with "filter_bogus" function Platforms tested: VMS server, heping Misc. update:
Diffstat (limited to 'c++/test/dsets.cpp')
-rw-r--r--c++/test/dsets.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp
index 3f0dec5..0930451 100644
--- a/c++/test/dsets.cpp
+++ b/c++/test/dsets.cpp
@@ -58,7 +58,7 @@ const H5std_string DSET_BOGUS_NAME ("bogus");
const int H5Z_FILTER_BOGUS = 305;
// Local prototypes
-static size_t bogus(unsigned int flags, size_t cd_nelmts,
+static size_t filter_bogus(unsigned int flags, size_t cd_nelmts,
const unsigned int *cd_values, size_t nbytes, size_t *buf_size, void **buf);
void cleanup_dsets(void);
@@ -394,7 +394,7 @@ const H5Z_class_t H5Z_BOGUS[1] = {{
"bogus", /* Filter name for debugging */
NULL, /* The "can apply" callback */
NULL, /* The "set local" callback */
- bogus, /* The actual filter function */
+ (H5Z_func_t)filter_bogus, /* The actual filter function */
}};
/*-------------------------------------------------------------------------
@@ -418,7 +418,7 @@ static size_t
const unsigned int UNUSED cd_values[], size_t nbytes,
size_t UNUSED *buf_size, void UNUSED **buf)
BMR: removed UNUSED for now until asking Q. or R. to pass compilation*/
-bogus(unsigned int flags, size_t cd_nelmts,
+filter_bogus(unsigned int flags, size_t cd_nelmts,
const unsigned int cd_values[], size_t nbytes,
size_t *buf_size, void **buf)
{