aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_ptr_slow.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2019-03-20 19:00:03 +0200
committerrl1987 <rl1987@sdf.lonestar.org>2019-03-20 19:00:03 +0200
commit280109473fe30d1e67f8db09ce279cc1f714a682 (patch)
tree79cda521a48d114eb37520f9b25ca95e232ff999 /src/test/test_ptr_slow.c
parent0bc9ed9d38cb29783d000b6e22677ae16727976b (diff)
downloadtor-280109473fe30d1e67f8db09ce279cc1f714a682.tar.gz
tor-280109473fe30d1e67f8db09ce279cc1f714a682.zip
Check more values of int
Diffstat (limited to 'src/test/test_ptr_slow.c')
-rw-r--r--src/test/test_ptr_slow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_ptr_slow.c b/src/test/test_ptr_slow.c
index 07481fb1ec..5b366b7d38 100644
--- a/src/test/test_ptr_slow.c
+++ b/src/test/test_ptr_slow.c
@@ -33,7 +33,11 @@ test_int_voidstar_interop(void *arg)
int a;
(void)arg;
- for (a = 0; a <= 1024; a++) {
+ for (a = -1024; a <= 1024; a++) {
+ assert_int_voidptr_roundtrip(a);
+ }
+
+ for (a = INT_MIN; a <= INT_MIN+1024; a++) {
assert_int_voidptr_roundtrip(a);
}