summaryrefslogtreecommitdiff
path: root/tests/test-address.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Fix strict aliasing of sockaddr structuresPhilip Withnall2014-01-311-3/+6
| | | | | | | | | | | | Casting from one struct sockaddr type to another breaks C’s strict aliasing rules (variables of different types cannot alias). Fix this cleanly by using unions of struct sockaddrs to convert between the types (i.e. type-punning). I wish sockaddr didn’t have to be this painful. See: http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Optimize-Options.html#Type_002dpunning
* Move tests from agent and socket, into its own tests directory.. fixes issue ↵Youness Alaoui2009-01-141-0/+172
when doing make check before doing make all