This is the mail archive of the gcc@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]

Re: PATCH: Don't use -o ./a.out in the gcc testsuite.


> Date: Wed, 17 Oct 2001 10:30:57 -0700
> From: "H . J . Lu" <hjl@lucon.org>
> To: Tim Prince <tprince@computer.org>
> Cc: gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org

> How about this patch? Tested on Linux/x86.

While I have no official status to ok this, the patch looks good to
me.

The only danger is, the ./a.out's should be transformed to ./foo.exe
names, not foo.exe names, to retain the `sameness'.  The ./ is not
without meaning, if . isn't `soon' enough in the path and the name is
used to run the testcase.

> -	    set output_file "./a.out"
> +	    set output_file "[file rootname [file tail $prog]].exe"

Fixing this after the fact tends to be fairly obscure.


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