The test comment mentions that we will test the no 1-bits set case. So, this commit makes sure that it is tested.
Signed-off-by: Alex Wang <al...@nicira.com> --- tests/test-hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-hash.c b/tests/test-hash.c index d7e2e6b..bc7c7e8 100644 --- a/tests/test-hash.c +++ b/tests/test-hash.c @@ -151,8 +151,8 @@ check_256byte_hash(void (*hash)(const void *, size_t, uint32_t, ovs_u128 *), const int n_bits = 256 * 8; int i, j; - for (i = 0; i < n_bits; i++) { - for (j = i + 1; j < n_bits; j++) { + for (i = 0; i <= n_bits; i++) { + for (j = i + 1; j <= n_bits; j++) { OVS_PACKED(struct offset_ovs_u128 { uint32_t a; ovs_u128 b[16]; -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev