Commit: cc291810aab621012df19bf947d4bcd04249d269
Parent: ba40ce263746e6e6953e0181eda88d879ceee937
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-01-16 14:35:05
Tree: 09df3b25d7d2208210f077e66150a99411e4848a

unit: Add {TEXT,URL}_STR{8,16} tests for sdp_extract_attr() These tests are for valid data. Other tests might be added later to check for error paths, but will require separate macros. {TEXT,URL}_STR32 cannot be tested with the same macros because sdp_extract_attr() does not support them. They will be tested separately with other SDP library functions. As example of failure output, if commit 504a0cf46ad89cab8005ce9cffb22e41048f6a30 is reverted for testing, the STR16 test will fail with: ERROR:unit/test-sdp.c:776:test_sdp_de_attr: assertion failed (test->input_size == size): (7 == 11)

Diffstat

M unit/test-sdp.c | 78 ++++++++++++++++++++++++++++++++++++++++

1 files changed, 78 insertions(+), 0 deletions(-)

View Full Diff | Patch