diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2016-04-01 21:30:24 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2016-04-01 21:30:24 (GMT) |
commit | e45885dea912a18b9fd6b1450d3ff196dcb749eb (patch) | |
tree | 496f55a18f2ae21b2e0e225407285329d046750f /hl | |
parent | 8e41b14811129b60914b0db51c34e76e1fb0b7e7 (diff) | |
download | hdf5-e45885dea912a18b9fd6b1450d3ff196dcb749eb.zip hdf5-e45885dea912a18b9fd6b1450d3ff196dcb749eb.tar.gz hdf5-e45885dea912a18b9fd6b1450d3ff196dcb749eb.tar.bz2 |
[svn-r29603] HDFFV-9746 Add test for "/" for H5LTpath_valid
Tested: jam (gnu)
Diffstat (limited to 'hl')
-rw-r--r-- | hl/test/test_lite.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hl/test/test_lite.c b/hl/test/test_lite.c index f3258d6..6cadd95 100644 --- a/hl/test/test_lite.c +++ b/hl/test/test_lite.c @@ -2066,6 +2066,15 @@ static int test_valid_path(void) /************************************** * CHECK ABSOLUTE PATHS **************************************/ + + if( (path_valid = H5LTpath_valid(file_id, "/", TRUE)) != TRUE) { + goto out; + } + + if( (path_valid = H5LTpath_valid(file_id, "/", FALSE)) != TRUE) { + goto out; + } + if( (path_valid = H5LTpath_valid(file_id, "/G1", TRUE)) != TRUE) { goto out; } @@ -2112,6 +2121,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)) != TRUE) { + goto out; + } + + if( (path_valid = H5LTpath_valid(group, "/", FALSE)) != TRUE) { + goto out; + } + + if(H5Gclose(group)<0) + goto out; + if( (group = H5Gopen2(file_id, "/G1", H5P_DEFAULT)) < 0) goto out; |