]> sourceware.org Git - glibc.git/commit
localedef: Add tests-container test for --no-hard-links.
authorCarlos O'Donell <carlos@redhat.com>
Tue, 25 Feb 2020 15:15:30 +0000 (10:15 -0500)
committerCarlos O'Donell <carlos@redhat.com>
Thu, 30 Apr 2020 20:28:07 +0000 (16:28 -0400)
commitdf6c63ebbce9679e755f0ecc716a33babee5d008
treef94f4a3856310c80df8dc9d2c2b2a061391856b9
parent033362cfd7e0e1dccd6c9a2642710d6e3a7e7007
localedef: Add tests-container test for --no-hard-links.

The new tst-localedef-hardlinks verifies that when compiling
two locales (with default output directory) one with
--no-hard-links and one without the option, results in the
expected behaviour.  When --no-hard-links is used the link
counts on LC_CTYPE is 1, indicating that even thoug the two
locale are identical (though different named source files and
output direcotry) the localedef did not carry out the hard
link optimization.  Then when --no-hard-links is omitted the
localedef hard link optimization is correctly carried out and
for 2 compiled locales the link count for LC_CTYPE is 2.

Reviewed-by: DJ Delorie <dj@redhat.com>
localedata/Makefile
localedata/tst-localedef-hardlinks.c [new file with mode: 0644]
localedata/tst-localedef-hardlinks.root/postclean.req [new file with mode: 0644]
localedata/tst-localedef-hardlinks.root/test1_locale [new file with mode: 0644]
localedata/tst-localedef-hardlinks.root/test2_locale [new file with mode: 0644]
localedata/tst-localedef-hardlinks.root/tst-localedef-hardlinks.script [new file with mode: 0644]
This page took 0.043757 seconds and 5 git commands to generate.