dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix for config/sim.exp


From: Steve Ellcey
Subject: Fix for config/sim.exp
Date: Fri, 14 Feb 2014 09:55:38 -0800
User-agent: Heirloom mailx 12.5 6/20/10

While looking at some GCC testsuite failures that were occuring while
testing with the qemu simulator I ran into a problem that I believe is
due to a missing override of sim_exec in config/sim.exp.

Basically the script in GCC (gcc/testsuite/lib/profopt.exp) was running:

        remote_file build delete $execname1

to remove a file and this was being translated into a rsh/ssh command
to my simulator baseboard as if it was a remote system.  After some
false leads I now believe that the problem is that config/sim.exp has
overrides for load, upload, and download, but no override for exec.

I made this patch to my dejagnu and now things are working, can this
patch be checked in to the dejagnu source tree?

Steve Ellcey
address@hidden


2014-02-14  Steve Ellcey  <address@hidden>

        * config/sim.exp (sim_exec): New.


diff --git a/config/sim.exp b/config/sim.exp
index ab83835..be5b6ce 100644
--- a/config/sim.exp
+++ b/config/sim.exp
@@ -133,6 +133,10 @@ proc sim_upload { dest srcfile args } {
     return [remote_upload host $srcfile $args]
 }
 
+proc sim_exec { dest srcfile args } {
+    return [remote_exec host $srcfile $args]
+}
+
 set_board_info protocol  "sim"
 
 # By default, assume the simulator is slow.  This causes some tests




reply via email to

[Prev in Thread] Current Thread [Next in Thread]