chiark / gitweb /
dhcp: Add option append tests
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 9 Dec 2013 21:43:15 +0000 (23:43 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 12 Dec 2013 16:43:34 +0000 (11:43 -0500)
commitd8b61a1dc9153c6f22c923b303b6235ff55122a3
tree874fd09bfcf5c90032c9bbdf477cc1a0e3282acc
parenta10c375e02da66efec40e28142bc22fd8955e968
dhcp: Add option append tests

Add checks for invalid lengths and parameters when using the option
appending function. Add also checks for adding options, see to it
that the resulting array is identical to the array of options added.
src/libsystemd-dhcp/test-dhcp-option.c