summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2016-04-01 21:30:56 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2016-04-01 21:30:56 (GMT)
commitb60cfd39706a60703e549a022aebac186fcfc2c2 (patch)
treeeafc3555e784254a8b2dd219cbe74aa91f6bbd5e /hl/test
parent962faf31acc950439a80c4cd5fd82771f2c5de06 (diff)
downloadhdf5-b60cfd39706a60703e549a022aebac186fcfc2c2.zip
hdf5-b60cfd39706a60703e549a022aebac186fcfc2c2.tar.gz
hdf5-b60cfd39706a60703e549a022aebac186fcfc2c2.tar.bz2
[svn-r29604] HDFFV-9746 Add test for "/" for H5LTpath_valid
Tested: jam (gnu)
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_lite.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/hl/test/test_lite.c b/hl/test/test_lite.c
index fccc85f..b060e9d 100644
--- a/hl/test/test_lite.c
+++ b/hl/test/test_lite.c
@@ -2073,6 +2073,15 @@ static int test_valid_path(void)
/**************************************
* CHECK ABSOLUTE PATHS
**************************************/
+
+ if( (path_valid = H5LTpath_valid(file_id, "/", TRUE)) != FALSE) {
+ goto out;
+ }
+
+ if( (path_valid = H5LTpath_valid(file_id, "/", FALSE)) != FALSE) {
+ goto out;
+ }
+
if( (path_valid = H5LTpath_valid(file_id, "/G1", TRUE)) != TRUE) {
goto out;
}
@@ -2119,6 +2128,20 @@ static int test_valid_path(void)
* CHECK RELATIVE PATHS
***************************************/
+ if( (group = H5Gopen2(file_id, "/", H5P_DEFAULT)) < 0)
+ goto out;
+
+ if( (path_valid = H5LTpath_valid(group, "/", TRUE)) != FALSE) {
+ goto out;
+ }
+
+ if( (path_valid = H5LTpath_valid(group, "/", FALSE)) != FALSE) {
+ goto out;
+ }
+
+ if(H5Gclose(group)<0)
+ goto out;
+
if( (group = H5Gopen2(file_id, "/G1", H5P_DEFAULT)) < 0)
goto out;