]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r319048,r319049,r319051,r319054:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Jul 2017 18:09:26 +0000 (18:09 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Jul 2017 18:09:26 +0000 (18:09 +0000)
commit09cd91c5b95976e8002251104c8538e026177f24
tree8af90933b78da5910c7a753147d35f85e67f0cd2
parent3d6af060d95968a614fc6aab10ce855507818a49
MFC r319048,r319049,r319051,r319054:

r319048:

Push `snapshot_file` copying down into run_tests function, and mark snapshot_file
const char *.

This fixes a bogus set of errors from gcc about strdup not being allowed a NULL
argument.

r319049:

Bump WARNS from 1 to 3 after recent commits to fix warnings in the
directory.

Tested with: clang 4.0, gcc 4.2.1, gcc 6.3.0

r319051:

hostent_test_getnameinfo_eq(..): initialize found_a_host to false

CID: 1368943

r319054:

hostent_test_getaddrinfo_eq(..): call freeaddrinfo on `ai` when done

This plugs a leak of memory allocated via getaddrinfo.

CID: 1346866

git-svn-id: svn://svn.freebsd.org/base/stable/10@321144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/tests/nss/Makefile
lib/libc/tests/nss/getaddrinfo_test.c
lib/libc/tests/nss/gethostby_test.c