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: [PATCH] profopt.exp and remote testing


Daniel Jacobowitz wrote:

My $DEJAGNU has a switch statement that not only handles native and a
number of simulator targets, but also a remote target. If I add these procedures,
I suppose that will break remote tests.



No it won't. Remote tests aren't using target "sim"!


On Tue, Aug 30, 2005 at 08:56:11PM +0100, Joern RENNECKE wrote:


ERROR: tcl error sourcing /mnt/scratch/nightly/2005-08-16-23290/srcw/gcc/testsuite/g++.dg/bprob/bprob.exp.
ERROR: can't read "file": no such variable
while executing
"remote_upload host $file $args"



Then fix the obvious typos in sim_upload? Libstdc++ only needed
sim_download at the time I put those in my site.exp.


Ah. Looking at the procedure names and the backtrace more closely, I think I understand
a bit better now how this stuff works. Still, the original problem of not deleting the stale
*.gcda file remained; I had to add another procedure, sim_remote, for that.
What I've added in total to $DEJAGNU now is:


proc sim_download { dest file args } {
   return [remote_download host $file $args]
}

proc sim_upload { dest file args } {
   return [remote_upload host $file $args]
}

proc sim_file { dest file args } {
   return [remote_file host $file $args]
}

and it appears to work. Thanks!


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