summaryrefslogtreecommitdiffstats
path: root/test/dtypes.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-04-04 21:00:31 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-04-04 21:00:31 (GMT)
commit02e4ee5edf5d1c8fe285497def5cd7b7afbf77e4 (patch)
tree4b36327c0da85d62ea116da32d0f114700d0f6c9 /test/dtypes.c
parent7170bbbc96f2b29f42be53f8271fc359f617e09c (diff)
downloadhdf5-02e4ee5edf5d1c8fe285497def5cd7b7afbf77e4.zip
hdf5-02e4ee5edf5d1c8fe285497def5cd7b7afbf77e4.tar.gz
hdf5-02e4ee5edf5d1c8fe285497def5cd7b7afbf77e4.tar.bz2
[svn-r2073] Added free-list code to the library and took out the older "temporary buffer"
code, since the functionality was superceded. See the followup document for details on the free-list code.
Diffstat (limited to 'test/dtypes.c')
-rw-r--r--test/dtypes.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index bf369e6..285a174 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -13,6 +13,9 @@
/* Number of times to run each test */
#define NTESTS 1
+/* Number of elements in each test */
+#define NTESTELEM 100000
+
/* Define if you want to see a count of overflows */
#undef SHOW_OVERFLOWS
@@ -436,7 +439,7 @@ test_compound_2(void)
int e, d, c[4], b, a;
} *d_ptr;
- const int nelmts = 200000;
+ const int nelmts = NTESTELEM;
const size_t four = 4;
unsigned char *buf=NULL, *orig=NULL, *bkg=NULL;
hid_t st=-1, dt=-1;
@@ -550,7 +553,7 @@ test_compound_3(void)
int a, c[4], e;
} *d_ptr;
- const int nelmts = 200000;
+ const int nelmts = NTESTELEM;
const size_t four = 4;
unsigned char *buf=NULL, *orig=NULL, *bkg=NULL;
hid_t st=-1, dt=-1;
@@ -664,7 +667,7 @@ test_compound_4(void)
int e;
} *d_ptr;
- const int nelmts = 200000;
+ const int nelmts = NTESTELEM;
const size_t four = 4;
unsigned char *buf=NULL, *orig=NULL, *bkg=NULL;
hid_t st=-1, dt=-1;
@@ -1363,7 +1366,7 @@ test_conv_str_2(void)
{
char *buf=NULL, s[80];
hid_t c_type, f_type;
- const size_t nelmts = 200000, ntests=NTESTS;
+ const size_t nelmts = NTESTELEM, ntests=NTESTS;
size_t i, j, nchars;
int ret_value = 1;
@@ -1423,7 +1426,7 @@ test_conv_str_2(void)
static int
test_conv_enum_1(void)
{
- const int nelmts=200000, ntests=NTESTS;
+ const int nelmts=NTESTELEM, ntests=NTESTS;
int i, val, *buf=NULL;
hid_t t1, t2;
char s[80];
@@ -1808,7 +1811,7 @@ static int
test_conv_int_1(const char *name, hid_t src, hid_t dst)
{
const size_t ntests=NTESTS; /*number of tests */
- const size_t nelmts=200000; /*num values per test */
+ const size_t nelmts=NTESTELEM; /*num values per test */
const size_t max_fails=8; /*max number of failures*/
size_t fails_all_tests=0; /*number of failures */
size_t fails_this_test; /*fails for this test */
@@ -2960,7 +2963,7 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst)
{
flt_t src_type, dst_type; /*data types */
const size_t ntests=NTESTS; /*number of tests */
- const size_t nelmts=200000; /*num values per test */
+ const size_t nelmts=NTESTELEM; /*num values per test */
const size_t max_fails=8; /*max number of failures*/
size_t fails_all_tests=0; /*number of failures */
size_t fails_this_test; /*fails for this test */