This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH roland/env-only] Avoid re-exec-self in bug-setlocale1.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]