diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2011-04-18 21:29:33 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2011-04-18 21:29:33 (GMT) |
commit | edd55ada7c76e7908f8d20d889795ef0e8b9b43c (patch) | |
tree | cdfd9e3de3d50d4deaab94bec0a56899a1d4d8da /test | |
parent | 6ad1466b4f3e9a3754398ed6c0e762002689b866 (diff) | |
download | hdf5-edd55ada7c76e7908f8d20d889795ef0e8b9b43c.zip hdf5-edd55ada7c76e7908f8d20d889795ef0e8b9b43c.tar.gz hdf5-edd55ada7c76e7908f8d20d889795ef0e8b9b43c.tar.bz2 |
[svn-r20549] Fixed bug in test/vfd.c (HDFFV-5936) that caused STDIO VFD test to fail on some platforms.
The problem was that the test was a clone of the SEC2 test. The SEC2 test accepts a file descriptor (int) via a void pointer from H5Fget_vfd_handle() whereas the STDIO test needs to accept a FILE pointer. Storing the FILE pointer in an integer failed on some systems. The STDIO test now stores the file handle in FILE pointer and checks it for NULL instead of < 0.
Diffstat (limited to 'test')
-rw-r--r-- | test/vfd.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -1223,19 +1223,10 @@ test_stdio(void) hid_t fapl = -1; hid_t access_fapl = -1; char filename[1024]; - int *fhandle = NULL; + FILE **fhandle = NULL; hsize_t file_size = 0; - // The STDIO file driver fails on 64-bit Solaris (SPARC) and - // 32-bit Darwin (Intel) for unknown reasons. This test - // will be disabled while we investigate. TESTING("STDIO file driver"); - SKIPPED(); - printf("\t** NOTE **: The STDIO file driver fails on some systems\n"); - printf("\t(64-bit Solaris(SPARC) and 32-bit Darwin(intel)).\n"); - printf("\tThe STDIO VFD test has been disabled while we investigate.\n"); - fflush(stdout); - return 0; /* Set property list and file name for STDIO driver. */ fapl = h5_fileaccess(); @@ -1261,7 +1252,7 @@ test_stdio(void) /* Check file handle API */ if(H5Fget_vfd_handle(file, H5P_DEFAULT, (void **)&fhandle) < 0) TEST_ERROR; - if(*fhandle < 0) + if(NULL == *fhandle) TEST_ERROR; /* Check file size API */ |