summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-12-22 22:27:17 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-12-22 22:27:17 (GMT)
commit617d2704c4216e520d36dd034eb4d3785be76f8d (patch)
treed7647c04446e8b601e9cd6dbc981213edf940be8 /hl/test
parentdf509d202fd69a6cb9ab9da1d7f4b683d2342ab9 (diff)
downloadhdf5-617d2704c4216e520d36dd034eb4d3785be76f8d.zip
hdf5-617d2704c4216e520d36dd034eb4d3785be76f8d.tar.gz
hdf5-617d2704c4216e520d36dd034eb4d3785be76f8d.tar.bz2
[svn-r11832] Purpose: Rename files and change grammar rule.
Description: Renamed lex.yy.c to H5LTanalyze.c, y.tab.c to H5LTparse.c, and y.tab.h to H5LTparse.h in hl/src. Changed definition of opaque type to ommit the tag. Changed the test for opaque type in hl/test, too. Platforms tested: h5committest, fuss, and sleipnir. Misc. update: MANIFEST
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_lite.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/hl/test/test_lite.c b/hl/test/test_lite.c
index f4e9aab..533147a 100644
--- a/hl/test/test_lite.c
+++ b/hl/test/test_lite.c
@@ -1238,14 +1238,13 @@ static int test_opaques(void)
{
hid_t dtype;
size_t opq_size;
- char *opq_tag = NULL;
H5T_class_t type_class;
char* dt_str;
size_t str_len;
TESTING3(" text for opaque types");
- if((dtype = H5LTtext_to_dtype("H5T_OPAQUE { OPQ_SIZE 19; OPQ_TAG \"This is a tag for opaque type\"; }"))<0)
+ if((dtype = H5LTtext_to_dtype("H5T_OPAQUE { OPQ_SIZE 19; }"))<0)
goto out;
if((type_class = H5Tget_class(dtype))<0)
@@ -1258,18 +1257,12 @@ static int test_opaques(void)
if(opq_size != 19)
goto out;
- if((opq_tag = H5Tget_tag(dtype)) == NULL)
- goto out;
- if(strcmp(opq_tag, "This is a tag for opaque type"))
- goto out;
- free(opq_tag);
-
if(H5LTdtype_to_text(dtype, NULL, &str_len)<0)
goto out;
dt_str = (char*)calloc(str_len, sizeof(char));
if(H5LTdtype_to_text(dtype, dt_str, &str_len)<0)
goto out;
- if(strcmp(dt_str, "H5T_OPAQUE {\n OPQ_SIZE 19;\n OPQ_TAG \"This is a tag for opaque type\";\n }")) {
+ if(strcmp(dt_str, "H5T_OPAQUE {\n OPQ_SIZE 19;\n }")) {
printf("dt=\n%s\n", dt_str);
goto out;
}