diff options
Diffstat (limited to 'hl/test/test_lite.c')
-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 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; |