summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-08-22 13:51:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-08-22 13:51:30 (GMT)
commitc17ea4461717a8065cc421980f897fa30a07f8d0 (patch)
tree45679c8bdb4e4e09b3e834e8bd15799e3e69f86a /test
parent7a5586ca8ea00b164b4b1aaa61617fbbd9cd0f25 (diff)
downloadhdf5-c17ea4461717a8065cc421980f897fa30a07f8d0.zip
hdf5-c17ea4461717a8065cc421980f897fa30a07f8d0.tar.gz
hdf5-c17ea4461717a8065cc421980f897fa30a07f8d0.tar.bz2
[svn-r12607] Description:
Tweak the library's new faster fletcher32 algorithm to always produce the same checksum as the previous fletcher32 code in the fletcher32 I/O pipeline filter and switch the filter to use the library's version of the algorithm. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2) Too minor to require h5committest
Diffstat (limited to 'test')
-rw-r--r--test/tchecksum.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/tchecksum.c b/test/tchecksum.c
index ff49294..62c0505 100644
--- a/test/tchecksum.c
+++ b/test/tchecksum.c
@@ -57,7 +57,7 @@ test_chksum_size_one(void)
/* Buffer w/zero(s) for data */
HDmemset(buf, 0, sizeof(buf));
chksum = H5_fletcher32(buf, sizeof(buf));
- VERIFY(chksum, 0xffffffff, "H5_fletcher32");
+ VERIFY(chksum, 0, "H5_fletcher32");
} /* test_chksum_size_one() */
@@ -79,7 +79,7 @@ test_chksum_size_two(void)
/* Buffer w/zero(s) for data */
HDmemset(buf, 0, sizeof(buf));
chksum = H5_fletcher32(buf, sizeof(buf));
- VERIFY(chksum, 0xffffffff, "H5_fletcher32");
+ VERIFY(chksum, 0, "H5_fletcher32");
} /* test_chksum_size_two() */
@@ -101,7 +101,7 @@ test_chksum_size_three(void)
/* Buffer w/zero(s) for data */
HDmemset(buf, 0, sizeof(buf));
chksum = H5_fletcher32(buf, sizeof(buf));
- VERIFY(chksum, 0xffffffff, "H5_fletcher32");
+ VERIFY(chksum, 0, "H5_fletcher32");
} /* test_chksum_size_three() */
@@ -123,7 +123,7 @@ test_chksum_size_four(void)
/* Buffer w/zero(s) for data */
HDmemset(buf, 0, sizeof(buf));
chksum = H5_fletcher32(buf, sizeof(buf));
- VERIFY(chksum, 0xffffffff, "H5_fletcher32");
+ VERIFY(chksum, 0, "H5_fletcher32");
} /* test_chksum_size_four() */
@@ -149,7 +149,7 @@ test_chksum_large(void)
/* Buffer w/zero(s) for data */
HDmemset(large_buf, 0, sizeof(large_buf));
chksum = H5_fletcher32(large_buf, sizeof(large_buf));
- VERIFY(chksum, 0xffffffff, "H5_fletcher32");
+ VERIFY(chksum, 0, "H5_fletcher32");
} /* test_chksum_large() */