This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH roland/env-only] Avoid re-exec-self in bug-setlocale1.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: Florian Weimer <fweimer at redhat dot com>, "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 6 Mar 2015 18:52:31 +0000
- Subject: Re: [PATCH roland/env-only] Avoid re-exec-self in bug-setlocale1.
- Authentication-results: sourceware.org; auth=none
- References: <20150304212323 dot 43B2E2C3B7B at topped-with-meat dot com> <54F81A0C dot 2030904 at redhat dot com> <20150305221830 dot 92E332C3AB9 at topped-with-meat dot com>
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