summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-03-24 00:38:03 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-03-24 00:38:03 (GMT)
commit32f21214bb0215e77c4819be9462e254c4532b85 (patch)
treec3af703ac7cf79fb9e7018bb38f33ad5d76f312d /test/tfile.c
parent8ed8520c19779f24d5d8018c9eb488aaad1c4d2d (diff)
downloadhdf5-32f21214bb0215e77c4819be9462e254c4532b85.zip
hdf5-32f21214bb0215e77c4819be9462e254c4532b85.tar.gz
hdf5-32f21214bb0215e77c4819be9462e254c4532b85.tar.bz2
[svn-r29545] Minor normalization w/ trunk in preparation for big merge.
Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1 autotools serial autotools parallel (MPICH 3.1.4)
Diffstat (limited to 'test/tfile.c')
-rw-r--r--test/tfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/tfile.c b/test/tfile.c
index dff4128..7444698 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -3261,8 +3261,10 @@ test_filespace_compatible(void)
CHECK(fd_new, FAIL, "HDopen");
/* Copy data */
- while((nread = HDread(fd_old, buf, (size_t)READ_OLD_BUFSIZE)) > 0)
- HDwrite(fd_new, buf, (size_t)nread);
+ while((nread = HDread(fd_old, buf, (size_t)READ_OLD_BUFSIZE)) > 0) {
+ ssize_t write_err = HDwrite(fd_new, buf, (size_t)nread);
+ CHECK(write_err, -1, "HDwrite");
+ } /* end while */
/* Close the files */
ret = HDclose(fd_old);