mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r8066] Purpose: bug fix
Description: h5dump and h5ls failed an assertion check when a dataset's datatype is enumerate type and there are special characters in the names of these values. Platforms tested: h5committest
This commit is contained in:
parent
7f7fbb4718
commit
c4d9f6ae10
@ -1479,13 +1479,13 @@ static void gent_enum(void)
|
||||
|
||||
file = H5Fcreate(FILE15,H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
|
||||
/* Try to test names with special characters */
|
||||
type = H5Tcreate(H5T_ENUM, sizeof(enumtype));
|
||||
H5Tenum_insert(type, "RED", (val = 0, &val));
|
||||
H5Tenum_insert(type, "GREEN", (val = 1, &val));
|
||||
H5Tenum_insert(type, "BLUE", (val = 2, &val));
|
||||
H5Tenum_insert(type, "WHITE", (val = 3, &val));
|
||||
H5Tenum_insert(type, "BLACK", (val = 4, &val));
|
||||
H5Tenum_insert(type, "GREEN\ngreen", (val = 1, &val));
|
||||
H5Tenum_insert(type, "BLUE blue", (val = 2, &val));
|
||||
H5Tenum_insert(type, "WHITE \"white\"", (val = 3, &val));
|
||||
H5Tenum_insert(type, "BLACK \'black\'", (val = 4, &val));
|
||||
H5Tcommit(file, "enum normal", type);
|
||||
|
||||
space = H5Screate_simple(1,size,NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user