diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-06 18:09:00 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-06 18:09:00 -0500 |
commit | 7a80476768fa764c1ed79de911d17b32c8334553 (patch) | |
tree | 87bbed81f7c8e2eb63305d0859ab665f4a7ead57 /test/tinytest_demo.c | |
parent | 239d8345be1c03b3ca4948fd612b5082d4a0da8c (diff) | |
download | libevent-7a80476768fa764c1ed79de911d17b32c8334553.tar.gz |
Update to the latest version of tinytest
This brings us up to tinytest 709a36ba63ff16d8
Diffstat (limited to 'test/tinytest_demo.c')
-rw-r--r-- | test/tinytest_demo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/tinytest_demo.c b/test/tinytest_demo.c index 10a80b2f..bdd0e600 100644 --- a/test/tinytest_demo.c +++ b/test/tinytest_demo.c @@ -152,6 +152,9 @@ test_memcpy(void *ptr) memcpy(db->buffer2, db->buffer1, sizeof(db->buffer1)); tt_str_op(db->buffer1, ==, db->buffer2); + /* This one works if there's an internal NUL. */ + tt_mem_op(db->buffer1, <, db->buffer2, sizeof(db->buffer1)); + /* Now we've allocated memory that's referenced by a local variable. The end block of the function will clean it up. */ mem = strdup("Hello world."); |