PATCH: do not use send_user in remote_expect

Ben Elliston <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
The only procs that should call send_user are pass, fail, etc.
Committed to master.

Ben

2016-03-30  Ben Elliston  <[email protected]>

	    * 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 != "" } {

_______________________________________________
DejaGnu mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/dejagnu
signature.asc (application/pgp-signature, 811 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVvslLXY2KIi1WYjUAQj6uQ//SPiex2S3VzkL0G1rrexdR/rgE0x5I18g
a9r9+euowXtQoKsz42RS4TamKzh7fhrMmsTWHZmGKzMq3qKD8YiZiWagoDy9lbo6
3CWq1Q9IlF1Ka8Wn29WYWD30dnX4Wc6AYSGpPlSt/x3nIJF1SibTEBCHvt+IGhS7
mzYExoWCohqYtxbnFIYm8ILXGZCjD/65JIzXWfgFR/6CFaWK73tH4ugMZaAgvzI4
KlpZd9kUaIx6CuGyf0XZxbWAegwmlUNMzk8vcwI/8cpBs8tjxGy6QJq8OTA+wjkD
qfydoG0TGH9jrq4mPZMyD+h6zJm7Qr9X2A/TwbXpKCWEep6B/nQKF7V0BFnEIbj2
rMBFpDIM96D47hA+kAH/Gz6PTCuXqGyCNOCbtzJyVKsuiYtuBFJQqUectE61UbCr
mx3MMvuhYUrDMMaT+K/1eTBvnymC6R3wdvmAEp3cwiM7WBVFT7c36+ECTPdltbSQ
07sNV0tUb+iP34PajPezPGUILIB9n0KU3TkVm+hwRBdnv+QsbnrVUDA9Ca6QLc5a
Qgu3UDgp5jg2iVMefQMZv1Ke2X62tdscGGV3lH1xHVynz6xeix5bOlzQpiBAxC/C
Muw5fFleyxBcjLZxhL/MlmmMiDrczRMSQjL7P8tq1ER/effuMbcAHJiIsgz82mAe
zulRhQHIreg=
=7bu3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.