summaryrefslogtreecommitdiffstats
path: root/src/H5Faccum.c
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5...Larry Knox2017-04-251-6/+4
* Bring changes to I/O parameters from page_buffering branch.Quincey Koziol2017-03-131-30/+58
* Bring SWMR support in to the main development branch. (Finally!) More testsQuincey Koziol2016-12-021-0/+6
* [svn-r29057] added dxpl type checking when debug mode is enabled (H5_DEBUG_BU...Mohamad Chaarawi2016-02-071-10/+2
* [svn-r28972] Removed option to clear file buffers from autotools, CMake, and ...Dana Robinson2016-01-261-18/+17
* [svn-r27768] Description:Quincey Koziol2015-09-141-1/+1
* [svn-r27133] - Add a new attribute function characterstic for format:Mohamad Chaarawi2015-06-011-1/+1
* [svn-r27045] Renamed H5_ASSIGN_OVERFLOW() to H5_CHECKED_ASSIGN() and re-orderedDana Robinson2015-05-101-7/+7
* [svn-r25097] Description:Quincey Koziol2014-04-251-42/+42
* [svn-r25092] Description:Quincey Koziol2014-04-241-189/+179
* [svn-r25088] Description:Quincey Koziol2014-04-231-45/+45
* [svn-r25084] Description:Quincey Koziol2014-04-231-15/+42
* [svn-r24709] rename H5V to H5VM since H5V is needed in the fastforward projec...Mohamad Chaarawi2014-02-131-6/+6
* [svn-r24476] Description:Quincey Koziol2013-11-301-1/+1
* [svn-r22444] (1) fix for making MEM_GHEAP as MEM_DRAWVailin Choi2012-06-071-9/+18
* [svn-r21919] Description:Quincey Koziol2012-02-091-6/+6
* [svn-r19623] Purpose:Mike McGreevy2010-10-181-1/+1
* [svn-r19617] Purpose:Mike McGreevy2010-10-151-295/+426
* [svn-r19544] Purpose:Mike McGreevy2010-10-081-6/+9
* [svn-r19292] Description:Quincey Koziol2010-08-241-27/+43
* [svn-r19276] Description:Quincey Koziol2010-08-221-1/+1
* [svn-r19272] Description:Quincey Koziol2010-08-201-0/+3
* [svn-r19247] Description:Quincey Koziol2010-08-171-53/+232
* [svn-r18571] Description:Quincey Koziol2010-04-151-48/+73
* [svn-r17624] Description:Quincey Koziol2009-10-091-62/+8
* [svn-r17414] Description:Quincey Koziol2009-08-241-4/+10
* [svn-r17313] Description:Quincey Koziol2009-08-101-1/+1
* [svn-r17062] Description:Quincey Koziol2009-06-171-14/+14
* [svn-r17045] Description:Quincey Koziol2009-06-121-56/+150
* [svn-r15937] Description:Quincey Koziol2008-10-231-45/+46
* [svn-r15800] Description:Quincey Koziol2008-10-071-0/+655
P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR; now = HDtime(NULL); if(H5Dclose(dset) < 0) TEST_ERROR; if(H5Sclose(space) < 0) TEST_ERROR; if(H5Fclose(file) < 0) TEST_ERROR; /* * Open the file and get the modification time. We'll test the * H5Oget_info() arguments too: being able to stat something without * knowing its name. */ h5_fixname(FILENAME[0], fapl, filename, sizeof filename); if((file = H5Fopen(filename, H5F_ACC_RDONLY, fapl)) < 0) TEST_ERROR; if(H5Oget_info_by_name(file, "dset", &oi1, H5P_DEFAULT) < 0) TEST_ERROR; if((dset = H5Dopen2(file, "dset", H5P_DEFAULT)) < 0) TEST_ERROR; if(H5Oget_info(dset, &oi2) < 0) TEST_ERROR; if(H5Dclose(dset) < 0) TEST_ERROR; if(H5Fclose(file) < 0) TEST_ERROR; /* Compare addresses & times from the two ways of calling H5Oget_info() */ if(oi1.addr != oi2.addr || oi1.mtime != oi2.mtime) { H5_FAILED(); puts(" Calling H5Oget_info() with the dataset ID returned"); puts(" different values than calling it with a file and dataset"); puts(" name."); goto error; } /* Compare times -- they must be within 60 seconds of one another */ if(0 == oi1.mtime) { SKIPPED(); puts(" The modification time could not be decoded on this OS."); puts(" Modification times will be mantained in the file but"); puts(" cannot be queried on this system. See H5O_mtime_decode()."); return 0; } else if(HDfabs(HDdifftime(now, oi1.mtime)) > 60.0) { H5_FAILED(); tm = HDlocaltime(&(oi1.mtime)); HDstrftime((char*)buf1, sizeof buf1, "%Y-%m-%d %H:%M:%S", tm); tm = HDlocaltime(&now); HDstrftime((char*)buf2, sizeof buf2, "%Y-%m-%d %H:%M:%S", tm); printf(" got: %s\n ans: %s\n", buf1, buf2); goto error; } PASSED(); /* Check opening existing file with old-style modification time information * and make certain that the time is correct */ TESTING("accessing old modification time messages"); { const char *testfile = H5_get_srcdir_filename(TESTFILE1); /* Corrected test file name */ file = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT); if(file >= 0){ if(H5Oget_info_by_name(file, "/Dataset1", &oi1, H5P_DEFAULT) < 0) TEST_ERROR; if(oi1.mtime != MTIME1) { H5_FAILED(); /* If this fails, examine H5Omtime.c. Modification time is very * system dependant (e.g., on Windows DST must be hardcoded). */ puts(" Old modification time incorrect"); goto error; } if(H5Fclose(file) < 0) TEST_ERROR; } else { H5_FAILED(); printf("***cannot open the pre-created old modification test file (%s)\n", testfile); goto error; } /* end else */ } PASSED(); /* Check opening existing file with new-style modification time information * and make certain that the time is correct */ TESTING("accessing new modification time messages"); { const char *testfile = H5_get_srcdir_filename(TESTFILE2); /* Corrected test file name */ file = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT); if(file >= 0){ if(H5Oget_info_by_name(file, "/Dataset1", &oi2, H5P_DEFAULT) < 0) TEST_ERROR; if(oi2.mtime != MTIME2) { H5_FAILED(); puts(" Modification time incorrect."); goto error; } if(H5Fclose(file) < 0) TEST_ERROR; } else { H5_FAILED(); printf("***cannot open the pre-created old modification test file (%s)\n", testfile); goto error; } /* end else */ } PASSED(); /* All looks good */ puts("All modification time tests passed."); h5_cleanup(FILENAME, fapl); return 0; /* Something broke */ error: return 1; }