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


> 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=

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


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