From b75974abaa8716142892656da013cbc56536f9ee Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Thu, 12 Feb 1998 11:39:09 -0500 Subject: [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. --- test/dsets.c | 16 ++++++++++------ 1 file 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"); -- cgit v0.12