Neels Hofmeyr | b455205 | 2019-10-21 03:00:26 +0200 | [diff] [blame] | 1 | test_sdp_termination() |
| 2 | |
| 3 | struct gsm_mncc: |
| 4 | empty SDP: len=1860 sdplen=1026 sdp="\0" rc=0 |
| 5 | empty SDP, shortest possible: len=835 sdplen=1 sdp="\0" rc=0 |
| 6 | empty SDP, zero len: len=834 sdplen=0 sdp=- rc=-22 |
| 7 | terminated SDP str: len=1860 sdplen=1026 sdp="Privacy is a desirable marketing option\0" rc=0 |
| 8 | terminated SDP str, shortest possible: len=874 sdplen=40 sdp="Privacy is a desirable marketing option\0" rc=0 |
| 9 | terminated SDP str, but len excludes nul: len=873 sdplen=39 sdp="Privacy is a desirable marketing option" rc=-22 |
| 10 | terminated SDP str, but len too short: len=857 sdplen=23 sdp="Privacy is a desirable " rc=-22 |
| 11 | len way too short: len=10 sdplen=-824 sdp=- rc=-22 |
| 12 | len zero: len=0 sdplen=-834 sdp=- rc=-22 |
| 13 | |
| 14 | struct gsm_mncc_rtp: |
| 15 | empty SDP: len=1048 sdplen=1024 sdp="\0" rc=0 |
| 16 | empty SDP, shortest possible: len=25 sdplen=1 sdp="\0" rc=0 |
| 17 | empty SDP, zero len: len=24 sdplen=0 sdp=- rc=-22 |
| 18 | terminated SDP str: len=1048 sdplen=1024 sdp="Privacy is a desirable marketing option\0" rc=0 |
| 19 | terminated SDP str, shortest possible: len=64 sdplen=40 sdp="Privacy is a desirable marketing option\0" rc=0 |
| 20 | terminated SDP str, but len excludes nul: len=63 sdplen=39 sdp="Privacy is a desirable marketing option" rc=-22 |
| 21 | terminated SDP str, but len too short: len=47 sdplen=23 sdp="Privacy is a desirable " rc=-22 |
| 22 | len way too short: len=10 sdplen=-14 sdp=- rc=-22 |
| 23 | len zero: len=0 sdplen=-24 sdp=- rc=-22 |