diff options
author | John Mainzer <mainzer@hdfgroup.org> | 2006-05-02 06:06:38 (GMT) |
---|---|---|
committer | John Mainzer <mainzer@hdfgroup.org> | 2006-05-02 06:06:38 (GMT) |
commit | 720f6cb0654db81051c1d3d5c150cac8537e6bc2 (patch) | |
tree | b71b295dae37b98d463fac7bd588f76518b9dc92 /testpar | |
parent | c6e532afb936a4a7cd8d2cb97029e55cd5b9e435 (diff) | |
download | hdf5-720f6cb0654db81051c1d3d5c150cac8537e6bc2.zip hdf5-720f6cb0654db81051c1d3d5c150cac8537e6bc2.tar.gz hdf5-720f6cb0654db81051c1d3d5c150cac8537e6bc2.tar.bz2 |
[svn-r12321] Purpose:
Bug fix
Description:
Fix two test bugs:
1) Unitialized variable bug in test of H5C_get_entry_status()
(in test/cache.c)
2) Incorrect initialization of constant in t_cache when running
with MPE. (in testpar/t_cache.c)
Solution:
1) Don't test uninitialize variable.
2) Correct initialzation of constant in MPE case.
Platforms tested:
Tested on Heping and Copper.
Misc. update:
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_cache.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/testpar/t_cache.c b/testpar/t_cache.c index 56a684a..8b119b8 100644 --- a/testpar/t_cache.c +++ b/testpar/t_cache.c @@ -155,20 +155,7 @@ struct datum * *****************************************************************************/ -#ifndef H5_HAVE_MPE - -#if 1 /* JRM */ #define NUM_DATA_ENTRIES 100000 -#else /* JRM */ -#define NUM_DATA_ENTRIES 10000 -#endif /* JRM */ - -#else /* H5_HAVE_MPE */ - -/* Use a smaller test size to avoid creating huge MPE logfiles. */ -#define NUM_DATA_ENTRIES 1000 - -#endif /* H5_HAVE_MPE */ struct datum data[NUM_DATA_ENTRIES]; @@ -189,6 +176,7 @@ struct datum data[NUM_DATA_ENTRIES]; #define STD_VIRT_NUM_DATA_ENTRIES NUM_DATA_ENTRIES #define EXPRESS_VIRT_NUM_DATA_ENTRIES (NUM_DATA_ENTRIES / 10) +/* Use a smaller test size to avoid creating huge MPE logfiles. */ #define MPE_VIRT_NUM_DATA_ENTIES (NUM_DATA_ENTRIES / 100) int virt_num_data_entries = NUM_DATA_ENTRIES; @@ -4251,9 +4239,6 @@ main(int argc, char **argv) if ( (express_test = do_express_test()) ) { -#if 0 /* I'll want this from time to time */ - HDfprintf(stdout, "%d:%s: Express test.\n", world_mpi_rank, fcn_name); -#endif virt_num_data_entries = EXPRESS_VIRT_NUM_DATA_ENTRIES; } else { |