summaryrefslogtreecommitdiffstats
path: root/test/stack_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stack_test.c')
-rw-r--r--test/stack_test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/stack_test.c b/test/stack_test.c
index 0c1648da77..e59acd353b 100644
--- a/test/stack_test.c
+++ b/test/stack_test.c
@@ -195,6 +195,10 @@ static int test_uchar_stack(int reserve)
goto end;
/* dup */
+ r = sk_uchar_dup(NULL);
+ if (sk_uchar_num(r) != 0)
+ goto end;
+ sk_uchar_free(r);
r = sk_uchar_dup(s);
if (!TEST_int_eq(sk_uchar_num(r), n))
goto end;
@@ -291,6 +295,10 @@ static int test_SS_stack(void)
goto end;
/* deepcopy */
+ r = sk_SS_deep_copy(NULL, &SS_copy, &SS_free);
+ if (sk_SS_num(r) != 0)
+ goto end;
+ sk_SS_free(r);
r = sk_SS_deep_copy(s, &SS_copy, &SS_free);
if (!TEST_ptr(r))
goto end;