The only procs that should call send_user are pass, fail, etc.
Committed to master.

Ben

2016-03-30  Ben Elliston  <b...@gnu.org>

            * lib/remote.exp (remote_expect): Use perror not send_user.

diff --git a/lib/remote.exp b/lib/remote.exp
index 95b6e9e..c88e5bb 100644
--- a/lib/remote.exp
+++ b/lib/remote.exp
@@ -1295,7 +1295,7 @@ proc remote_expect { board timeout args } {
 
     if {$code == 1} {
        if {[info exists string]} {
-           send_user "ERROR OCCURRED: $errorInfo $errorCode $string"
+           perror "$errorInfo $errorCode $string"
        }
 
        if { $error_sect != "" } {

Attachment: signature.asc
Description: Digital signature

_______________________________________________
DejaGnu mailing list
DejaGnu@gnu.org
https://lists.gnu.org/mailman/listinfo/dejagnu

Reply via email to