diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-01-29 19:08:17 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-01-29 19:08:17 (GMT) |
commit | 6d2a73d49f9010b5b4aabe72d771603863d41099 (patch) | |
tree | 6c40b53b91708c53a16eaf3d6602b92f57f7b31c /test/set_extent.c | |
parent | b3731e34096a2cc0d387db9ac0bb0a6a4808f652 (diff) | |
download | hdf5-6d2a73d49f9010b5b4aabe72d771603863d41099.zip hdf5-6d2a73d49f9010b5b4aabe72d771603863d41099.tar.gz hdf5-6d2a73d49f9010b5b4aabe72d771603863d41099.tar.bz2 |
[svn-r16374] Description:
Bring r16372 back from trunk:
Clean up files produced from set_extent testing.
Tested on:
FreeBSD/32 6.3 (duty)
(too minor to require h5committest)
Diffstat (limited to 'test/set_extent.c')
-rw-r--r-- | test/set_extent.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/test/set_extent.c b/test/set_extent.c index 47a6ce5..b16bbd0 100644 --- a/test/set_extent.c +++ b/test/set_extent.c @@ -36,6 +36,8 @@ #define FILE_NAME3 "set_extent3.h5" #define FILE_NAME4 "set_extent4.h5" #define FILE_NAME5 "set_extent5.h5" +#define EXT_FILE_NAME1 "ext1.bin" +#define EXT_FILE_NAME2 "ext2.bin" #define RANK1 1 #define RANK2 2 @@ -94,9 +96,17 @@ int main( void ) puts("All set_extent tests passed."); + + HDremove(FILE_NAME1); + HDremove(FILE_NAME2); + HDremove(FILE_NAME3); + HDremove(FILE_NAME4); + HDremove(FILE_NAME5); + HDremove(EXT_FILE_NAME1); + HDremove(EXT_FILE_NAME2); + return 0; - error: H5_FAILED(); return 1; @@ -2044,12 +2054,12 @@ static int test_external( void ) goto error; } - if(H5Pset_external(dcpl, "ext1.bin", (off_t)0, size) < 0) + if(H5Pset_external(dcpl, EXT_FILE_NAME1, (off_t)0, size) < 0) { goto error; } - if(H5Pset_external(dcpl, "ext2.bin", (off_t)0, size) < 0) + if(H5Pset_external(dcpl, EXT_FILE_NAME2, (off_t)0, size) < 0) { goto error; } @@ -2617,6 +2627,3 @@ error: } - - - |