diff options
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: } - - - |