diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-08-13 20:53:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-08-13 20:53:35 (GMT) |
commit | 6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch) | |
tree | 5a7a112fe7a8a98c6fecb45b513789d15962eb3d /test/unlink.c | |
parent | 6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff) | |
download | hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2 |
[svn-r11245] Purpose:
Code cleanup
Description:
Trim trailing whitespace, which is making 'diff'ing the two branches
difficult.
Solution:
Ran this script in each directory:
foreach f (*.[ch] *.cpp)
sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f
end
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'test/unlink.c')
-rw-r--r-- | test/unlink.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/test/unlink.c b/test/unlink.c index 137bc88..c8b7ddc 100644 --- a/test/unlink.c +++ b/test/unlink.c @@ -92,7 +92,7 @@ test_one(hid_t file) { hid_t work=-1, grp=-1; herr_t status; - + /* Create a test group */ if ((work=H5Gcreate(file, "/test_one", 0))<0) goto error; @@ -160,7 +160,7 @@ test_many(hid_t file) int i; const int how_many=500; char name[32]; - + /* Create a test group */ if ((work=H5Gcreate(file, "/test_many", 0))<0) goto error; if ((grp = H5Gcreate(work, "/test_many_foo", 0))<0) goto error; @@ -205,7 +205,7 @@ test_many(hid_t file) if (H5Gunlink(work, name)<0) goto error; } PASSED(); - + /* Create a bunch of names and unlink them from the midle */ TESTING("outward unlink"); for (i=0; i<how_many; i++) { @@ -221,12 +221,12 @@ test_many(hid_t file) if (H5Gunlink(work, name)<0) goto error; } PASSED(); - + /* Cleanup */ if (H5Gclose(work)<0) goto error; return 0; - + error: H5E_BEGIN_TRY { H5Gclose(work); @@ -258,7 +258,7 @@ test_symlink(hid_t file) hid_t work=-1; TESTING("symlink removal"); - + /* Create a test group and symlink */ if ((work=H5Gcreate(file, "/test_symlink", 0))<0) goto error; if (H5Glink(work, H5G_LINK_SOFT, "link_value", "link")<0) goto error; @@ -268,7 +268,7 @@ test_symlink(hid_t file) if (H5Gclose(work)<0) goto error; PASSED(); return 0; - + error: H5E_BEGIN_TRY { H5Gclose(work); @@ -319,7 +319,7 @@ test_rename(hid_t file) /* Cleanup */ if (H5Gclose(work)<0) goto error; return 0; - + error: H5E_BEGIN_TRY { H5Gclose(work); @@ -329,7 +329,7 @@ test_rename(hid_t file) return 1; } - + /*------------------------------------------------------------------------- * Function: test_new_move * @@ -339,8 +339,8 @@ test_rename(hid_t file) * * Failure: number of errors * - * Programmer: Raymond Lu - * Thursday, April 25, 2002 + * Programmer: Raymond Lu + * Thursday, April 25, 2002 * * Modifications: * @@ -354,8 +354,8 @@ test_new_move(void) char filename[1024]; TESTING("new move"); - - /* Create a second file */ + + /* Create a second file */ fapl = h5_fileaccess(); h5_fixname(FILENAME[1], fapl, filename, sizeof filename); if ((file_a=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0) @@ -370,7 +370,7 @@ test_new_move(void) if((grp_move=H5Gcreate(grp_1, "group_move", 0))<0) goto error; /* Create hard and soft links. */ - if(H5Glink2(grp_1, "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(grp_1, "/group1/group_move", H5G_LINK_SOFT, grp_2, "soft")<0) goto error; @@ -387,13 +387,13 @@ test_new_move(void) 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(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(grp_2, "group_new_name"))<0) + if((moved_grp = H5Gopen(grp_2, "group_new_name"))<0) goto error; H5Gclose(grp_1); @@ -1253,7 +1253,7 @@ static int test_create_unlink(const char *msg, hid_t fapl) char filename[1024]; TESTING(msg); - + /* Create file */ h5_fixname(FILENAME[3], fapl, filename, sizeof filename); if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0) @@ -1331,7 +1331,7 @@ test_link_slashes(void) char filename[1024]; TESTING("creating links with multiple slashes"); - + /* Create file */ fapl = h5_fileaccess(); h5_fixname(FILENAME[5], fapl, filename, sizeof filename); @@ -1401,7 +1401,7 @@ test_unlink_slashes(void) char filename[1024]; TESTING("deleting links with multiple slashes"); - + /* Create file */ fapl = h5_fileaccess(); h5_fixname(FILENAME[5], fapl, filename, sizeof filename); @@ -2017,7 +2017,7 @@ error: /*------------------------------------------------------------------------- * Function: test_unlink_chunked_dataset * - * Purpose: Tests deleting a chunked dataset + * Purpose: Tests deleting a chunked dataset * * Return: Success: 0 * Failure: number of errors @@ -2182,7 +2182,7 @@ main(void) nerrors += test_resurrect_dataset(); nerrors += test_resurrect_datatype(); nerrors += test_resurrect_group(); - + /* Test unlinking chunked datasets */ nerrors += test_unlink_chunked_dataset(); |