diff options
author | Scott Wegner <swegner@hdfgroup.org> | 2008-10-13 18:33:51 (GMT) |
---|---|---|
committer | Scott Wegner <swegner@hdfgroup.org> | 2008-10-13 18:33:51 (GMT) |
commit | 01eb811b400d9cac1e215f1b7889345fa231e0a8 (patch) | |
tree | 024805b04908206379aa6f2d8bd60a33f0ad2eff /test | |
parent | 1eaa64a2246e111789a96365fdda7917308dd77e (diff) | |
download | hdf5-01eb811b400d9cac1e215f1b7889345fa231e0a8.zip hdf5-01eb811b400d9cac1e215f1b7889345fa231e0a8.tar.gz hdf5-01eb811b400d9cac1e215f1b7889345fa231e0a8.tar.bz2 |
[svn-r15853] Purpose: Decrease size of points array in links test
Description:
In the external_set_elink_fapl2 links test, there is a large array of points which declared on the stack for testing. Previously, the array was 1000 x 1000, which was too large for Visual Studio to handle. As a result, we were getting stack overflows during the test. We've reduced the number to 400, as this seems to be below the limit. The exact number of points in the array isn't important to the test.
Tested:
VS2005 on WinXP
Diffstat (limited to 'test')
-rw-r--r-- | test/links.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/links.c b/test/links.c index 1575ed0..e7a7dd1 100644 --- a/test/links.c +++ b/test/links.c @@ -82,7 +82,7 @@ const char *FILENAME[] = { #define TMPDIR "tmp" #define FAMILY_SIZE 1024 #define CORE_INCREMENT 1024 -#define NUM1000 1000 +#define NUM400 400 /* do not do check_all_closed() for "ext*" files and "tmp/ext*" */ #define EXTSTOP 12 @@ -3698,7 +3698,7 @@ external_set_elink_fapl2(hid_t fapl, hbool_t new_format) cwdpath[NAME_BUF_SIZE]; hid_t core_fapl, space, dset, did, dapl_id, dcpl; hsize_t dims[2]; - int points[NUM1000][NUM1000]; + int points[NUM400][NUM400]; h5_stat_size_t filesize, new_filesize; int i, j, n; @@ -3734,8 +3734,8 @@ external_set_elink_fapl2(hid_t fapl, hbool_t new_format) if((fid=H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, core_fapl)) < 0) TEST_ERROR if((gid=H5Gcreate2(fid, "A", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR - dims[0] = NUM1000; - dims[1] = NUM1000; + dims[0] = NUM400; + dims[1] = NUM400; if((space = H5Screate_simple(2, dims, NULL)) < 0) TEST_ERROR /* Create dataset creation property list */ @@ -3781,8 +3781,8 @@ external_set_elink_fapl2(hid_t fapl, hbool_t new_format) } /* Initialize the dataset */ - for(i = n = 0; i < NUM1000; i++) - for(j = 0; j < NUM1000; j++) + for(i = n = 0; i < NUM400; i++) + for(j = 0; j < NUM400; j++) points[i][j] = n++; /* Write the data to the dataset */ |