Skip to content

Commit 33294f6

Browse files
author
Thomas Kiley
committed
Add tests for when pointer parameters have special semantics
1 parent 1bbd0f8 commit 33294f6

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORE
2+
main.c
3+
--harness-type call-function --function test_function --treat-pointer-as-array input
4+
\[test_function\.assertion\.1\] line \d+ assertion input == 0: SUCCESS
5+
^VERIFICATION SUCCESSFUL$
6+
^EXIT=0$
7+
^SIGNAL=0$
8+
--
9+
--
10+
Ensure the harness is able to initalize a void* ptr to a null value, even when
11+
the parameter is specified to be treated as an array.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORE
2+
main.c
3+
--harness-type call-function --function test_function --treat-pointer-as-cstring input
4+
\[test_function\.assertion\.1\] line \d+ assertion input == 0: SUCCESS
5+
^VERIFICATION SUCCESSFUL$
6+
^EXIT=0$
7+
^SIGNAL=0$
8+
--
9+
--
10+
Ensure the harness is able to initalize a void* ptr to a null value, even when
11+
the parameter is specified to be treated as a string.

0 commit comments

Comments
 (0)