[PATCH roland/env-only] Avoid re-exec-self in bug-setlocale1.
Joseph Myers
joseph@codesourcery.com
Fri Mar 6 18:52:00 GMT 2015
On Thu, 5 Mar 2015, Roland McGrath wrote:
> I suspect that where we want to get to is that all tests run with a
> completely controlled environment. I can't really think of any reason why
> any of our tests should be run with random ambient environment variables.
> But I'm starting small.
Test scripts run on the build system certainly need variables such as PATH
to find utilities.
It may be that all test programs run on glibc's host never need to execute
any external utilities, so don't need PATH. Some tests may create
temporary files in TMPDIR, though use of /tmp should be fine as long as
they use unique names (and if they don't, this needs fixing - bug 13888).
Some tests (e.g. glob expanding ~) depend on HOME, but setting values
local to the test directory may work. Those seem the most likely
environment variable dependencies for tests.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list