test-getaddrinfo: report error information
authorEric Blake <eblake@redhat.com>
Tue, 3 May 2011 21:27:11 +0000 (15:27 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 3 May 2011 21:27:11 +0000 (15:27 -0600)
commitcc9b4bafbc4d712a483ce5b5b336ad80183edce3
treec5fbe2c7f422db068c6a54a29fb505d4d7f788c2
parent669d4ed58418b5dbffbd988a2c414c051673db04
test-getaddrinfo: report error information

Clang deduced that if ENABLE_DEBUGGING is undefined, then err
was a dead assignment.  But in the EAI_SYSTEM case, we fail
the test, so the output should be unconditional.

* tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
tests/test-getaddrinfo.c