glibc/posix
Stefan Liebler 29fddfc7df Use libnss_files.so for tests posix/bug-ga2 and resolv/tst-leaks2 [BZ #26821]
The tests posix/bug-ga2-mem and resolv/mtrace-tst-leaks2 are failing on
fedora 33 as mtrace reports memory leaks.

The /etc/nsswitch.conf differs between
Fedora 32: hosts:      files dns myhostname
Fedora 33: hosts:      files resolve [!UNAVAIL=return] myhostname dns

Therefore /lib64/libnss_resolve.so.2 (from systemd) and the dependencies
libgcc_s.so.1 and libpthread.so.0 are loaded.

Usually all malloc'ed resources from getaddrinfo / gethostbyname are freed
and the libraries are dlclose'd in nss/nsswitch.c:libc_freeres_fn (free_mem).
Unfortunately, /lib64/libnss_resolve.so.2 is marked with DF_1_NODELETE.
As this library is not unmapped, you'll see "Memory not freed".

Therefore those tests are now only relying on libnss_files.so by making
them test-container tests and providing the required configuration files.

By moving the tests to tests-container, those are now running with
"make check".  Therefore the mtrace part of the tests are also moved
from "make xcheck" to "make check".

bug-ga2.c is now using test-driver.c in order to support WAIT_FOR_DEBUGGER
environment variable.
2020-11-23 10:51:24 +01:00
..
bits improve out-of-bounds checking with GCC 10 attribute access [BZ #25219] 2020-05-04 11:21:50 -06:00
bug-ga2.root/etc Use libnss_files.so for tests posix/bug-ga2 and resolv/tst-leaks2 [BZ #26821] 2020-11-23 10:51:24 +01:00
rxspencer
sys
BOOST.tests
Depend
Makefile Use libnss_files.so for tests posix/bug-ga2 and resolv/tst-leaks2 [BZ #26821] 2020-11-23 10:51:24 +01:00
PCRE.tests
PTESTS
PTESTS2C.sed
TESTS
TESTS2C.sed
Versions
_exit.c
alarm.c
annexc.c
bsd-getpgrp.c
bug-ga1.c
bug-ga2.c Use libnss_files.so for tests posix/bug-ga2 and resolv/tst-leaks2 [BZ #26821] 2020-11-23 10:51:24 +01:00
bug-getopt1.c
bug-getopt2.c
bug-getopt3.c
bug-getopt4.c
bug-getopt5.c
bug-glob2.c
bug-glob3.c
bug-regex1.c
bug-regex2.c
bug-regex3.c
bug-regex4.c
bug-regex5.c
bug-regex6.c
bug-regex7.c
bug-regex8.c
bug-regex9.c
bug-regex10.c
bug-regex11.c
bug-regex12.c
bug-regex13.c
bug-regex14.c
bug-regex15.c
bug-regex16.c
bug-regex17.c
bug-regex18.c
bug-regex19.c
bug-regex20.c
bug-regex21.c
bug-regex22.c
bug-regex23.c
bug-regex24.c
bug-regex25.c
bug-regex26.c
bug-regex27.c
bug-regex28.c
bug-regex29.c
bug-regex30.c
bug-regex31.c
bug-regex31.input
bug-regex32.c
bug-regex33.c
bug-regex34.c
bug-regex35.c
bug-regex36.c
bug-regex37.c
bug-regex38.c
confstr.c
cpio.h
environ.c
execl.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
execle.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
execlp.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
execv.c
execve.c
execvp.c
execvpe.c
fexecve.c
flexmember.h
fnmatch.c
fnmatch.h
fnmatch_loop.c Fix handling of collating symbols in fnmatch (bug 26620) 2020-09-16 14:45:10 +02:00
fork.c
fpathconf.c
gai.conf
gai_strerror.c
get_child_max.c
getaddrinfo.c
getconf-speclist.c
getconf.c
getegid.c
geteuid.c
getgid.c
getgroups.c
getopt.c
getopt.h
getopt1.c
getopt_int.h
getpgid.c
getpgrp.c
getpid.c
getppid.c
getresgid.c
getresuid.c
getsid.c
getuid.c
glob-lstat-compat.c
glob.c Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
glob.h
glob64-lstat-compat.c
glob64.c
glob_internal.h
glob_pattern_p.c
globfree.c
globfree64.c
globtest.c
globtest.sh
group_member.c
init-posix.c
nanosleep.c
pathconf.c
pause.c
posix-conf-vars.h
posix-conf-vars.list
posix-envs.def
posix_madvise.c
pread.c
pread64.c
pwrite.c
pwrite64.c
re_comp.h
regcomp.c
regex.c Copy regex BITSET_WORD_BITS porting from Gnulib 2020-08-04 23:39:20 -07:00
regex.h Sync regex.h from Gnulib 2020-08-04 23:24:03 -07:00
regex_internal.c
regex_internal.h Copy regex_internal.h from Gnulib 2020-08-04 23:47:01 -07:00
regexbug1.c
regexec.c
runptests.c
runtests.c
sched.h
sched_cpualloc.c
sched_cpucount.c
sched_cpufree.c
sched_getaffinity.c
sched_getp.c Add hidden prototypes for __sched_getparam, __sched_getscheduler 2020-02-20 08:57:01 +01:00
sched_gets.c Add hidden prototypes for __sched_getparam, __sched_getscheduler 2020-02-20 08:57:01 +01:00
sched_primax.c
sched_primin.c
sched_rr_gi.c
sched_setaffinity.c
sched_setp.c
sched_sets.c
sched_yield.c
setgid.c
setpgid.c
setpgrp.c
setresgid.c
setresuid.c
setsid.c
setuid.c
sleep.c
spawn.c
spawn.h
spawn_faction_addchdir.c Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
spawn_faction_addclose.c
spawn_faction_adddup2.c
spawn_faction_addfchdir.c
spawn_faction_addopen.c
spawn_faction_destroy.c
spawn_faction_init.c
spawn_int.h
spawn_valid_fd.c
spawnattr_destroy.c
spawnattr_getdefault.c
spawnattr_getflags.c
spawnattr_getpgroup.c
spawnattr_getschedparam.c
spawnattr_getschedpolicy.c
spawnattr_getsigmask.c
spawnattr_init.c
spawnattr_setdefault.c
spawnattr_setflags.c
spawnattr_setpgroup.c
spawnattr_setschedparam.c
spawnattr_setschedpolicy.c
spawnattr_setsigmask.c
spawni.c
spawnp.c
streams-compat.c
sysconf.c
tar.h
test-errno.c Suppress GCC 10 true positive warnings [BZ #25967] 2020-05-11 11:38:02 -06:00
test-ssize-max.c
test-vfork.c
testfnm.c
times.c
transbug.c
tst-boost.c
tst-chmod.c
tst-cpucount.c
tst-cpuset.c
tst-dir.c
tst-exec-static.c
tst-exec.c
tst-execl1.c
tst-execl2.c
tst-execle1.c
tst-execle2.c
tst-execlp1.c
tst-execlp2.c
tst-execv1.c
tst-execv2.c
tst-execve1.c
tst-execve2.c
tst-execvp1.c
tst-execvp2.c
tst-execvp3.c
tst-execvp4.c
tst-execvpe1.c
tst-execvpe2.c
tst-execvpe3.c
tst-execvpe4.c
tst-execvpe5.c
tst-execvpe6.c
tst-fexecve.c
tst-fnmatch.c
tst-fnmatch.input Fix typo in posix/tst-fnmatch.input (Bug 25790) 2020-04-15 22:31:40 -04:00
tst-fnmatch2.c
tst-fnmatch3.c
tst-fnmatch4.c
tst-fnmatch5.c
tst-fnmatch6.c Fix handling of collating symbols in fnmatch (bug 26620) 2020-09-16 14:45:10 +02:00
tst-fork.c
tst-getaddrinfo.c
tst-getaddrinfo2.c
tst-getaddrinfo3.c
tst-getaddrinfo4.c
tst-getaddrinfo5.c
tst-getconf.sh
tst-getopt-cancel.c
tst-getopt_long1.c
tst-glob-tilde.c
tst-glob_lstat_compat.c
tst-glob_symlinks.c
tst-gnuglob-skeleton.c
tst-gnuglob.c
tst-gnuglob64.c
tst-mmap-offset.c
tst-mmap.c
tst-nanosleep.c
tst-nice.c
tst-pathconf.c
tst-pcre.c
tst-posix_fadvise-common.c
tst-posix_fadvise.c
tst-posix_fadvise64.c
tst-posix_spawn-fd.c
tst-posix_spawn-setsid.c
tst-preadwrite-common.c
tst-preadwrite.c
tst-preadwrite64.c
tst-regcomp-truncated.c
tst-regex.c
tst-regex.input
tst-regex2.c
tst-regexloc.c
tst-rfc3484-2.c
tst-rfc3484-3.c
tst-rfc3484.c
tst-rxspencer-no-utf8.c
tst-rxspencer.c
tst-spawn-chdir.c
tst-spawn-static.c
tst-spawn.c
tst-spawn2.c
tst-spawn3.c
tst-spawn4-compat.c
tst-spawn4.c
tst-sysconf-empty-chroot.c
tst-sysconf.c
tst-truncate-common.c
tst-truncate.c
tst-truncate64.c
tst-vfork1.c
tst-vfork2.c
tst-vfork3.c
tst-wait4.c posix: Add wait4 test case 2020-04-14 09:16:54 -07:00
tst-waitid.c posix: Refactor tst-waitid (BZ #14666) 2020-02-27 16:16:16 -03:00
tst-wordexp-nocmd.c
tstgetopt.c
uname-values.h
uname.c
unistd.h improve out-of-bounds checking with GCC 10 attribute access [BZ #25219] 2020-05-04 11:21:50 -06:00
vfork.c
wait.c
wait.h
wait3.c
wait4.c
waitid.c
waitpid.c
wordexp-test.c
wordexp-tst.sh
wordexp.c
wordexp.h