This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [testsuite] clean up GCC_EXEC_PREFIX use for PR38526


On Wed, Apr 1, 2009 at 7:13 PM, John David Anglin
<dave@hiauly1.hia.nrc.ca> wrote:
>> What is the output of
>>
>> [hjl@gnu-6 tmp]$ cat foo.exp
>> load_lib utils.exp
>>
>> setenv GCC_EXEC_PREFIX "foo"
>> if [info exists env(GCC_EXEC_PREFIX)] {
>> ? send_user "good: GCC_EXEC_PREFIX=3D$env(GCC_EXEC_PREFIX)\n"
>> } else {
>> ? send_user "bad\n"
>> }
>> unsetenv GCC_EXEC_PREFIX
>> if [info exists env(GCC_EXEC_PREFIX)] {
>> ? send_user "bad: GCC_EXEC_PREFIX=3D$env(GCC_EXEC_PREFIX)\n"
>> } else {
>> ? send_user "good\n"
>> }
>> [hjl@gnu-6 tmp]$ runtest foo.exp
>>
>> on Darwin?
>
> Running ./foo.exp ...
> good: GCC_EXEC_PREFIX=foo
> bad: GCC_EXEC_PREFIX=
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

That is the problem. unsetenv doesn't work on Darwin.


-- 
H.J.


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