diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-04-14 11:32:04 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-04-14 11:32:04 +0200 |
commit | 7361899e80c1001eb7d7c13b12ba72cbc3b758f2 (patch) | |
tree | b8e7547f0981c487e328b1aad996850a5378fe35 /source4/lib/socket | |
parent | 275f32ae2df333c089343dd20fc4efee1bed2b7b (diff) | |
parent | 2bb20aa8a8ff1170fd4d2a349a421990b0d7c235 (diff) | |
download | samba-7361899e80c1001eb7d7c13b12ba72cbc3b758f2.tar.gz samba-7361899e80c1001eb7d7c13b12ba72cbc3b758f2.tar.bz2 samba-7361899e80c1001eb7d7c13b12ba72cbc3b758f2.zip |
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 068c973dbeed5b0f5ccab4f780ae7db3535f5910)
Diffstat (limited to 'source4/lib/socket')
-rw-r--r-- | source4/lib/socket/testsuite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/socket/testsuite.c b/source4/lib/socket/testsuite.c index 6d4d81a884..813412c7bc 100644 --- a/source4/lib/socket/testsuite.c +++ b/source4/lib/socket/testsuite.c @@ -86,7 +86,7 @@ static bool test_udp(struct torture_context *tctx) torture_assert_int_equal(tctx, nread, size, "Unexpected recvfrom size"); - torture_assert(tctx, memcmp(blob2.data, blob.data, size) == 0, + torture_assert_mem_equal(tctx, blob2.data, blob.data, size, "Bad data in recvfrom"); generate_random_buffer(blob.data, blob.length); @@ -104,7 +104,7 @@ static bool test_udp(struct torture_context *tctx) torture_assert_int_equal(tctx, from_addr->port, srv_addr->port, "Unexpected recvfrom port"); - torture_assert(tctx, memcmp(blob2.data, blob.data, size) == 0, + torture_assert_mem_equal(tctx, blob2.data, blob.data, size, "Bad data in recvfrom"); talloc_free(sock1); @@ -181,7 +181,7 @@ static bool test_tcp(struct torture_context *tctx) torture_assert_int_equal(tctx, nread, size, "Unexpected recvfrom size"); - torture_assert(tctx, memcmp(blob2.data, blob.data, size) == 0, + torture_assert_mem_equal(tctx, blob2.data, blob.data, size, "Bad data in recv"); return true; } |