summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tfile.c')
-rw-r--r--test/tfile.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/tfile.c b/test/tfile.c
index 27b3601..2ad50cb 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -406,6 +406,31 @@ test_file_close(void)
CHECK(ret, FAIL, "H5Fclose");
+ /* Test behavior while opening file multiple times with different file
+ * close degree
+ */
+ fid1 = H5Fcreate(FILE1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
+ CHECK(fid1, FAIL, "H5Fcreate");
+
+ ret = H5Pset_fclose_degree(fapl_id, H5F_CLOSE_WEAK);
+ CHECK(ret, FAIL, "H5Pset_fclose_degree");
+
+ ret = H5Pget_fclose_degree(fapl_id, &fc_degree);
+ VERIFY(fc_degree, H5F_CLOSE_WEAK, "H5Pget_fclose_degree");
+
+ /* should succeed */
+ fid2 = H5Fopen(FILE1, H5F_ACC_RDWR, fapl_id);
+ CHECK(fid2, FAIL, "H5Fopen");
+
+ /* Close first open */
+ ret = H5Fclose(fid1);
+ CHECK(ret, FAIL, "H5Fclose");
+
+ /* Close second open */
+ ret = H5Fclose(fid2);
+ CHECK(ret, FAIL, "H5Fclose");
+
+
/* Test behavior while opening file multiple times with file close
* degree STRONG */
ret = H5Pset_fclose_degree(fapl_id, H5F_CLOSE_STRONG);
n_code_cleanup'>contrib_patrick_fradin_code_cleanup Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | | | | | regen (with autoconf 2.61, since that's what I've got...)dkf2008-12-191-6302/+6264
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | More autoconf hacking; now seems to be working fully on Unix...dkf2008-12-193-47/+71
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | CONSTify TclGetLoadedPackages second paramnijtmans2008-12-194-15/+21
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | add symbols deflateSetHeader and inflateGetHeader to win32/zlib.defnijtmans2008-12-194-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify ChangeLog, README and zlib.h, documenting this change, so we comply with the zlib requirements of clearly marking the modification.
| | * | | | | | | | | | | | | * unix/Makefile.in: Update `make dist` target to include the filesdgp2008-12-192-4/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the compat/zlib directory as well as all the bundled packages found under the pkgs directory, according to their individual `make dist` targets. Change includes breaking a `configure-packages` target out of the `packages` target.
| | * | | | | | | | | | | | | * README: Bump version number to 8.6b1dgp2008-12-1910-6272/+6325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * unix/configure: autoconf-2.59 * win/configure:
| | * | | | | | | | | | | | | * tests/chanio.test: Replaced [chan event] handlers thatdgp2008-12-192-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | returned TCL_RETURN return code, with more conventional ones that return TCL_OK to suppress otherwise strange writes of outdated $::errorInfo values to stderr. [Bug 2444274].
| | * | | | | | | | | | | | | * win/configure.in:Kevin B Kenny2008-12-194-2510/+1878
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * win/Makefile.in: Added build of packages in the 'pkgs/' directory. * win/configure: Autoconf 2.59
| | * | | | | | | | | | | | | nmake build file support for zlibpatthoyts2008-12-192-10/+32
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | * generic/tclIO.c (Tcl_CloseEx,CloseWrite,CloseChannelPart,ChanCloseHalf):andreas_kupries2008-12-184-28/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite the half-close to properly flush the channel, like is done for a full close, going through FlushChannel, and using the flag BG_FLUSH_SCHEDULED (async flush during close). New functions CloseWrite, CloseChannelPart, new flag CHANNEL_CLOSEDWRITE. * tests/chanio.test (chanio-28.[67]): Reactivated these tests. Replaced tclsh -> [interpreter] to get correct executable for the pipe process, and added after cancel to kill the fail timers when we are done. Removed the explicits calls to [flush], now that [close] handles this correctly.
| | * | | | | | | | | | | | | * generic/tclExecute.c: Disabled apparently faulty assertion.dgp2008-12-182-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Bug 2415422].
| | * | | | | | | | | | | | | Corrections to make things work with msysdkf2008-12-181-3/+3
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | regendkf2008-12-181-1/+1
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Wizzardry need more backslash!dkf2008-12-181-2/+2
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Formatting cleanup.dkf2008-12-18