Include LOCPATH in default test environment
Joseph S. Myers
joseph@codesourcery.com
Wed Jun 11 10:24:00 GMT 2014
On Wed, 11 Jun 2014, Florian Weimer wrote:
> On 06/05/2014 12:44 AM, Joseph S. Myers wrote:
> > Tests run using the default $(make-test-out) automatically get
> > GCONV_PATH and LC_ALL set, whether or not those environment variables
> > are actually needed for the individual test. However, they do not get
> > LOCPATH set, meaning that a large number of tests have -ENV settings
> > just to set LOCPATH.
>
> Is it still necessary to ensure manually that the localedata subdirectory is
> built in time, before tests relying on LOCPATH run?
If a directory contains tests using locales, my understanding is that its
Depend file should mention localedata to ensure that localedata comes
first in sysd-sorted. If you're doing "make <subdir>/tests", then indeed
you need to do "make localedata/tests" first (it would probably be good to
have an explicit dependency of all tests on these locale files to avoid
needing to depend on directory ordering like that).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list