RFC: Test hook for nss_files testing

Florian Weimer fweimer@redhat.com
Sun Dec 6 20:23:00 GMT 2015


The attached patch adds a test hook which allows us to select different
files (not those under /etc) for testing nss_files inside the build
tree.  It contains a regression test for bug 17363 as an example.

If the direction is acceptable, I'll add further tests.

This change increases the size of nss_files slightly (on x86_64):

Old:

   text    data     bss     dec     hex filename
  40895     992   26040   67927   10957 nss/libnss_files.so.2

New:

   text    data     bss     dec     hex filename
  41426    1088   26040   68554   10bca nss/libnss_files.so.2

If this is a problem, I can make additional cleanups which reduce the
DSO size to the previous level.

There are also a few additional relocations (for the string constants),
but they should not matter.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-test-hook-for-nss_files-database-file-sele.patch
Type: text/x-patch
Size: 18586 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151206/c2be7300/attachment.bin>


More information about the Libc-alpha mailing list