mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r14098] Description:
Clean up a few remaining API compatibility issues in the H5E API for parallel configurations Tested on: FreeBSD/64 6.2 (liberty) w/parallel
This commit is contained in:
parent
cdd4606430
commit
10dcf4b0e1
@ -1277,8 +1277,8 @@ extend_writeInd(void)
|
||||
|
||||
/* Try write to dataset2 beyond its current dim sizes. Should fail. */
|
||||
/* Temporary turn off auto error reporting */
|
||||
H5Eget_auto(&old_func, &old_client_data);
|
||||
H5Eset_auto(NULL, NULL);
|
||||
H5Eget_auto2(H5E_DEFAULT, &old_func, &old_client_data);
|
||||
H5Eset_auto2(H5E_DEFAULT, NULL, NULL);
|
||||
|
||||
/* create a file dataspace independently */
|
||||
file_dataspace = H5Dget_space (dataset2);
|
||||
@ -1292,7 +1292,7 @@ extend_writeInd(void)
|
||||
VRFY((ret < 0), "H5Dwrite failed as expected");
|
||||
|
||||
/* restore auto error reporting */
|
||||
H5Eset_auto(old_func, old_client_data);
|
||||
H5Eset_auto2(H5E_DEFAULT, old_func, old_client_data);
|
||||
H5Sclose(file_dataspace);
|
||||
|
||||
/* Extend dataset2 and try again. Should succeed. */
|
||||
@ -1567,8 +1567,8 @@ extend_readInd(void)
|
||||
|
||||
/* Try extend dataset1 which is open RDONLY. Should fail. */
|
||||
/* first turn off auto error reporting */
|
||||
H5Eget_auto(&old_func, &old_client_data);
|
||||
H5Eset_auto(NULL, NULL);
|
||||
H5Eget_auto2(H5E_DEFAULT, &old_func, &old_client_data);
|
||||
H5Eset_auto2(H5E_DEFAULT, NULL, NULL);
|
||||
|
||||
file_dataspace = H5Dget_space (dataset1);
|
||||
VRFY((file_dataspace >= 0), "H5Dget_space succeeded");
|
||||
@ -1579,7 +1579,7 @@ extend_readInd(void)
|
||||
VRFY((ret < 0), "H5Dextend failed as expected");
|
||||
|
||||
/* restore auto error reporting */
|
||||
H5Eset_auto(old_func, old_client_data);
|
||||
H5Eset_auto2(H5E_DEFAULT, old_func, old_client_data);
|
||||
H5Sclose(file_dataspace);
|
||||
|
||||
|
||||
@ -1874,8 +1874,8 @@ extend_writeAll(void)
|
||||
|
||||
/* Try write to dataset2 beyond its current dim sizes. Should fail. */
|
||||
/* Temporary turn off auto error reporting */
|
||||
H5Eget_auto(&old_func, &old_client_data);
|
||||
H5Eset_auto(NULL, NULL);
|
||||
H5Eget_auto2(H5E_DEFAULT, &old_func, &old_client_data);
|
||||
H5Eset_auto2(H5E_DEFAULT, NULL, NULL);
|
||||
|
||||
/* create a file dataspace independently */
|
||||
file_dataspace = H5Dget_space (dataset2);
|
||||
@ -1889,7 +1889,7 @@ extend_writeAll(void)
|
||||
VRFY((ret < 0), "H5Dwrite failed as expected");
|
||||
|
||||
/* restore auto error reporting */
|
||||
H5Eset_auto(old_func, old_client_data);
|
||||
H5Eset_auto2(H5E_DEFAULT, old_func, old_client_data);
|
||||
H5Sclose(file_dataspace);
|
||||
|
||||
/* Extend dataset2 and try again. Should succeed. */
|
||||
@ -1999,8 +1999,8 @@ extend_readAll(void)
|
||||
|
||||
/* Try extend dataset1 which is open RDONLY. Should fail. */
|
||||
/* first turn off auto error reporting */
|
||||
H5Eget_auto(&old_func, &old_client_data);
|
||||
H5Eset_auto(NULL, NULL);
|
||||
H5Eget_auto2(H5E_DEFAULT, &old_func, &old_client_data);
|
||||
H5Eset_auto2(H5E_DEFAULT, NULL, NULL);
|
||||
|
||||
file_dataspace = H5Dget_space (dataset1);
|
||||
VRFY((file_dataspace >= 0), "H5Dget_space succeeded");
|
||||
@ -2011,7 +2011,7 @@ extend_readAll(void)
|
||||
VRFY((ret < 0), "H5Dextend failed as expected");
|
||||
|
||||
/* restore auto error reporting */
|
||||
H5Eset_auto(old_func, old_client_data);
|
||||
H5Eset_auto2(H5E_DEFAULT, old_func, old_client_data);
|
||||
H5Sclose(file_dataspace);
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@ int ngroups = 512; /* number of groups to create in root
|
||||
int facc_type = FACC_MPIO; /*Test file access type */
|
||||
int dxfer_coll_type = DXFER_COLLECTIVE_IO;
|
||||
|
||||
H5E_auto_t old_func; /* previous error handler */
|
||||
H5E_auto2_t old_func; /* previous error handler */
|
||||
void *old_client_data; /* previous error handler arg.*/
|
||||
|
||||
/* other option flags */
|
||||
|
@ -188,7 +188,7 @@ typedef int DATATYPE;
|
||||
extern int dim0, dim1; /*Dataset dimensions */
|
||||
extern int chunkdim0, chunkdim1; /*Chunk dimensions */
|
||||
extern int nerrors; /*errors count */
|
||||
extern H5E_auto_t old_func; /* previous error handler */
|
||||
extern H5E_auto2_t old_func; /* previous error handler */
|
||||
extern void *old_client_data; /*previous error handler arg.*/
|
||||
extern int facc_type; /*Test file access type */
|
||||
extern int dxfer_coll_type;
|
||||
|
Loading…
Reference in New Issue
Block a user