summaryrefslogtreecommitdiffstats
path: root/test/set_extent.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-01-29 18:18:39 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-01-29 18:18:39 (GMT)
commit6416329ef8bfc9e1b3f2a0876cd13b83963b13ef (patch)
tree86f6d23f6fbf2673f1306a69fa0dc8f0ee3d82db /test/set_extent.c
parentb698574fce26e8cf5134ea9268f1bca25baf9a46 (diff)
downloadhdf5-6416329ef8bfc9e1b3f2a0876cd13b83963b13ef.zip
hdf5-6416329ef8bfc9e1b3f2a0876cd13b83963b13ef.tar.gz
hdf5-6416329ef8bfc9e1b3f2a0876cd13b83963b13ef.tar.bz2
[svn-r16372] Description:
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.c19
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:
}
-
-
-