]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix failing nss/tst-nss-files-hosts-long.
authorStefan Liebler <stli@linux.ibm.com>
Mon, 12 Jul 2021 09:00:53 +0000 (11:00 +0200)
committerStefan Liebler <stli@linux.ibm.com>
Mon, 12 Jul 2021 09:59:04 +0000 (11:59 +0200)
Sometimes the test nss/tst-nss-files-hosts-long is failing as getent
fails with exit-code 2.

This happens if tst-reload1 was run just before this test:
make t=nss/tst-reload1 test
make t=nss/tst-nss-files-hosts-long test
Then the test fails as /etc/nsswitch.conf contains "hosts: test2"
and the hosts are not searched in /etc/hosts at all.

Thus this patch just requests a post cleanup after nss/tst-reload1
has run.

nss/tst-reload1.root/postclean.req [new file with mode: 0644]

diff --git a/nss/tst-reload1.root/postclean.req b/nss/tst-reload1.root/postclean.req
new file mode 100644 (file)
index 0000000..e69de29