From ebc0b44fe18a40b7f31bdde45ec9f16edd4f658a Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 26 Sep 2013 01:51:10 -0500 Subject: [svn-r24202] Bug fix: HDFFV-8271 Big.c error in address generated by random number. Description: There is a bug in the current big.c tests. In a nut-shell, the writing part randomly picks 50 locations and write 4KB from that location. Random location range is from byte 0 to end of dataset. There is the problem--if the random location is greater than (end of dataset - 4KB), then error. Solution: Adjust the random number to be at least 4KB less than the end of the dataset. That allows it write 4KB more from the generated starting position. Tested: h5comittest plus jam serial build and test. --- test/big.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/big.c b/test/big.c index 5a70c26..831a2ed 100644 --- a/test/big.c +++ b/test/big.c @@ -435,7 +435,8 @@ writer (char* filename, hid_t fapl, fsizes_t testsize, int wrt_n) hs_size[0] = WRT_SIZE; if ((mem_space = H5Screate_simple (1, hs_size, hs_size)) < 0) goto error; for (i=0; i