test #558 verifies loop operation using malloc() and free()

This commit is contained in:
Yang Tse 2008-10-26 03:03:29 +00:00
parent 417bac4055
commit 6db8f53445
5 changed files with 186 additions and 2 deletions

View file

@ -59,7 +59,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test1064 test1065 test1066 test1067 test1068 test1069 test1070 test1071 \
test1072 test1073 test1074 test1075 test1076 test1077 test1078 test1079 \
test1080 test1081 test1082 test1083 test1084 test1085 test633 test634 \
test635 test636 test637
test635 test636 test637 test558
filecheck:
@mkdir test-place; \

54
tests/data/test558 Normal file
View file

@ -0,0 +1,54 @@
<testcase>
#
# Server-side
<reply>
</reply>
# Client-side
<client>
<server>
none
</server>
# tool is what to use instead of 'curl'
<tool>
lib558
</tool>
<name>
loop testing
</name>
<command>
nothing
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<stdout mode="text">
malloc of root struct OK
malloc of pointer table OK
initializing table...
table initialized OK
filling pointer table...
malloc of pointed element (idx 0) OK
malloc of pointed element (idx 1) OK
malloc of pointed element (idx 2) OK
malloc of pointed element (idx 3) OK
malloc of pointed element (idx 4) OK
malloc of pointed element (idx 5) OK
malloc of pointed element (idx 6) OK
malloc of pointed element (idx 7) OK
malloc of pointed element (idx 8) OK
malloc of pointed element (idx 9) OK
pointer table filling OK
freeing pointers in table...
freeing pointers in table OK
freeing table...
freeing table OK
freeing root struct...
freeing root struct OK
</stdout>
</verify>
</testcase>