summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2002-04-30 17:09:35 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2002-04-30 17:09:35 (GMT)
commit2d2e785e2de2b4b427717095e8cfe0b35730c2ee (patch)
tree70082a7259e32110db4cfdb27cb50ec8eb9b23b8 /test
parente91c406e0606f428094fbaedfa7e049724d20579 (diff)
downloadhdf5-2d2e785e2de2b4b427717095e8cfe0b35730c2ee.zip
hdf5-2d2e785e2de2b4b427717095e8cfe0b35730c2ee.tar.gz
hdf5-2d2e785e2de2b4b427717095e8cfe0b35730c2ee.tar.bz2
[svn-r5293]
Purpose: Bug Fix Description: Using "grp1", "grp2" variable names conflicts Windows' internal variable definition. Solution: Rename them. Platforms tested: Linux 2.2
Diffstat (limited to 'test')
-rw-r--r--test/links.c2
-rw-r--r--test/unlink.c28
2 files changed, 15 insertions, 15 deletions
diff --git a/test/links.c b/test/links.c
index 1d99a73..0684c11 100644
--- a/test/links.c
+++ b/test/links.c
@@ -361,7 +361,7 @@ cklinks(hid_t fapl)
static int
ck_new_links(hid_t fapl)
{
- hid_t file, dset, grp2;
+ hid_t file;
H5G_stat_t sb_dset, sb_hard1, sb_hard2, sb_soft1, sb_soft2;
char filename[1024];
char linkval[1024];
diff --git a/test/unlink.c b/test/unlink.c
index c31643f..2cc7efb 100644
--- a/test/unlink.c
+++ b/test/unlink.c
@@ -299,7 +299,7 @@ static int
test_new_move(void)
{
hid_t fapl, file_a, file_b;
- hid_t grp1, grp2, grp_move, moved_grp;
+ hid_t grp_1, grp_2, grp_move, moved_grp;
char filename[1024];
TESTING("new move");
@@ -314,14 +314,14 @@ test_new_move(void)
goto error;
/* Create groups in first file */
- if((grp1=H5Gcreate(file_a, "group1", 0))<0) goto error;
- if((grp2=H5Gcreate(file_a, "group2", 0))<0) goto error;
- if((grp_move=H5Gcreate(grp1, "group_move", 0))<0) goto error;
+ if((grp_1=H5Gcreate(file_a, "group1", 0))<0) goto error;
+ if((grp_2=H5Gcreate(file_a, "group2", 0))<0) goto error;
+ if((grp_move=H5Gcreate(grp_1, "group_move", 0))<0) goto error;
/* Create hard and soft links. */
- if(H5Glink2(grp1, "group_move", H5G_LINK_HARD, H5G_SAME_LOC, "hard")<0)
+ if(H5Glink2(grp_1, "group_move", H5G_LINK_HARD, H5G_SAME_LOC, "hard")<0)
goto error;
- if(H5Glink2(grp1, "/group1/group_move", H5G_LINK_SOFT, grp2, "soft")<0)
+ if(H5Glink2(grp_1, "/group1/group_move", H5G_LINK_SOFT, grp_2, "soft")<0)
goto error;
/* Move a group within the file. Both of source and destination use
@@ -333,20 +333,20 @@ test_new_move(void)
/* Move a group across files. Should fail. */
H5E_BEGIN_TRY {
- if(H5Gmove2(grp1, "group_move", file_b, "group_new_name")!=FAIL)
+ if(H5Gmove2(grp_1, "group_move", file_b, "group_new_name")!=FAIL)
goto error;
} H5E_END_TRY;
/* Move a group across groups in the same file. */
- if(H5Gmove2(grp1, "group_move", grp2, "group_new_name")<0)
+ if(H5Gmove2(grp_1, "group_move", grp_2, "group_new_name")<0)
goto error;
/* Open the group just moved to the new location. */
- if((moved_grp = H5Gopen(grp2, "group_new_name"))<0)
+ if((moved_grp = H5Gopen(grp_2, "group_new_name"))<0)
goto error;
- H5Gclose(grp1);
- H5Gclose(grp2);
+ H5Gclose(grp_1);
+ H5Gclose(grp_2);
H5Gclose(grp_move);
H5Gclose(moved_grp);
H5Fclose(file_a);
@@ -357,8 +357,8 @@ test_new_move(void)
error:
H5E_BEGIN_TRY {
- H5Gclose(grp1);
- H5Gclose(grp2);
+ H5Gclose(grp_1);
+ H5Gclose(grp_2);
H5Gclose(grp_move);
H5Gclose(moved_grp);
H5Fclose(file_a);
@@ -388,7 +388,7 @@ static int
check_new_move(void)
{
hid_t fapl, file;
- H5G_stat_t sb_hard1, sb_hard2, sb_soft;
+ H5G_stat_t sb_hard1, sb_hard2;
char filename[1024];
char linkval[1024];