summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-02-12 16:39:09 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-02-12 16:39:09 (GMT)
commitb75974abaa8716142892656da013cbc56536f9ee (patch)
treea2d183607136fccd22b83bab624a357fc673ccf2 /test
parenta7bd14a3bea37ffc256af318236cd6dd31a3bc68 (diff)
downloadhdf5-b75974abaa8716142892656da013cbc56536f9ee.zip
hdf5-b75974abaa8716142892656da013cbc56536f9ee.tar.gz
hdf5-b75974abaa8716142892656da013cbc56536f9ee.tar.bz2
[svn-r262] Changed an array to be allocated on the heap instead of the stack.
Some OS's have problems with large arrays created on the stack and I had forgotten about that when I wrote this test.
Diffstat (limited to 'test')
-rw-r--r--test/dsets.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 937160f..617b0b7 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -282,12 +282,16 @@ test_simple_io(hid_t file)
static herr_t
test_tconv(hid_t file)
{
- uint8 out[4 * 1000000];
- uint8 in[4 * 1000000];
- intn i;
- size_t dims[1];
- hid_t space, dataset, type;
- herr_t status;
+ uint8 *out=NULL, *in=NULL;
+ intn i;
+ size_t dims[1];
+ hid_t space, dataset, type;
+ herr_t status;
+
+ out = malloc (4*1000000);
+ assert (out);
+ in = malloc (4*1000000);
+ assert (in);
printf("%-70s", "Testing data type conversion");