diff options
Diffstat (limited to 'test/stab.c')
-rw-r--r-- | test/stab.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/stab.c b/test/stab.c index 1c43760..68c7630 100644 --- a/test/stab.c +++ b/test/stab.c @@ -81,6 +81,17 @@ test_misc(hid_t file) if (H5Gclose(g2)<0) goto error; if (H5Gclose(g3)<0) goto error; + /* Check that creating groups with no-op names isn't allowed */ + H5E_BEGIN_TRY { + g1=H5Gcreate(file, "/", 0); + } H5E_END_TRY + if(g1 >= 0) goto error; + + H5E_BEGIN_TRY { + g1=H5Gcreate(file, "./././", 0); + } H5E_END_TRY + if(g1 >= 0) goto error; + PASSED(); return 0; |