summaryrefslogtreecommitdiffstats
path: root/test/big.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
commit6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch)
tree5a7a112fe7a8a98c6fecb45b513789d15962eb3d /test/big.c
parent6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff)
downloadhdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2
[svn-r11245] Purpose:
Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'test/big.c')
-rw-r--r--test/big.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/big.c b/test/big.c
index 5f624b7..021b628 100644
--- a/test/big.c
+++ b/test/big.c
@@ -82,15 +82,15 @@ randll(hsize_t limit, int current_index)
for(i = 0; i < current_index; i++)
{
if((acc >= values_used[i]) && (acc < values_used[i]+WRT_SIZE))
- overlap = 1;
+ overlap = 1;
if((acc+WRT_SIZE >= values_used[i]) && (acc+WRT_SIZE < values_used[i]+WRT_SIZE))
- overlap = 1;
+ overlap = 1;
}
tries++;
}
values_used[current_index]=acc;
-
+
return acc;
}
@@ -118,7 +118,7 @@ is_sparse(void)
{
int fd;
h5_stat_t sb;
-
+
if ((fd=HDopen("x.h5", O_RDWR|O_TRUNC|O_CREAT, 0666))<0) return 0;
if (HDlseek(fd, (off_t)(1024*1024), SEEK_SET)!=1024*1024) return 0;
if (5!=HDwrite(fd, "hello", 5)) return 0;
@@ -188,7 +188,7 @@ enough_room(hid_t fapl)
ret_value=0;
HDunlink(name);
}
-
+
return ret_value;
}
@@ -226,7 +226,7 @@ writer (hid_t fapl, int wrt_n)
hid_t dcpl;
TESTING("large dataset write");
-
+
/*
* We might be on a machine that has 32-bit files, so create an HDF5 file
* which is a family of files. Each member of the family will be 1GB
@@ -235,15 +235,15 @@ writer (hid_t fapl, int wrt_n)
if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0) {
goto error;
}
-
+
/* Create simple data spaces according to the size specified above. */
if ((space1 = H5Screate_simple (4, size1, size1))<0 ||
(space2 = H5Screate_simple (1, size2, size2))<0) {
goto error;
}
-
+
/* Create the datasets */
-/*
+/*
* The fix below is provided for bug#921
* H5Dcreate with H5P_DEFAULT creation properties
* will create a set of solid 1GB files; test will crash if quotas are enforced
@@ -263,7 +263,7 @@ writer (hid_t fapl, int wrt_n)
(d2=H5Dcreate (file, "d2", H5T_NATIVE_INT, space2, dcpl))<0) {
goto error;
}
-
+
/* Write some things to them randomly */
hs_size[0] = WRT_SIZE;
@@ -279,7 +279,7 @@ writer (hid_t fapl, int wrt_n)
if (H5Dwrite (d2, H5T_NATIVE_INT, mem_space, space2,
H5P_DEFAULT, buf)<0) goto error;
}
-
+
if (H5Dclose (d1)<0) goto error;
if (H5Dclose (d2)<0) goto error;
if (H5Sclose (mem_space)<0) goto error;
@@ -437,11 +437,11 @@ usage(void)
/*-------------------------------------------------------------------------
* Function: main
*
- * Purpose:
+ * Purpose:
*
- * Return: Success:
+ * Return: Success:
*
- * Failure:
+ * Failure:
*
* Programmer: Robb Matzke
* Friday, April 10, 1998
@@ -462,7 +462,7 @@ main (int ac, char **av)
hsize_t family_size_def; /* default family file size */
double family_size_def_dbl; /* default family file size */
int cflag=1; /* check file system before test */
-
+
/* parameters setup */
family_size_def = FAMILY_SIZE;
@@ -544,7 +544,7 @@ main (int ac, char **av)
goto quit;
}
}
-
+
/* Do the test */
if (writer(fapl, WRT_N)) goto error;
if (reader(fapl)) goto error;