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