This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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] Clear GREP_OPTIONS environment variable.


> Andrew> The test gdb.base/maint.exp shells out from gdb to use grep. I
> Andrew> have GREP_OPTIONS="--color=auto" in my environment and this
> Andrew> causes the test to fail. The patch below clears this environment
> Andrew> variable before running gdb. Ok to apply?
> 
> Andrew> 2011-03-15  Andrew Burgess  <aburgess@broadcom.com>
> Andrew> 	* lib/gdb.exp (default_gdb_start): Clear the GREP_OPTIONS
> Andrew> 	environment variable to make grep output more predictable.
> 
> Ok.

I think that this is OK too.  However, I'm wondering whether, as
a followup, we should be moving this type of code to the gdb_init
routine, rather than putting it there.  The idea is to run this
once per testcase, rather than once everytime we start a new GDB
process.

-- 
Joel


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