This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc 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]

GNU C Library master sources branch master updated. glibc-2.29.9000-66-g56a731d


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  56a731d4ad319e473851893980e734b7ee42c1a0 (commit)
      from  712182c8dcc43e34a265268fb209b9dd20967f1e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=56a731d4ad319e473851893980e734b7ee42c1a0

commit 56a731d4ad319e473851893980e734b7ee42c1a0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Feb 8 13:49:19 2019 -0500

    Avoid readline conflicts in pexpect
    
    In some cases, sensitive to readline version and the user's
    environment, gdb might emit escape codes while run under python's
    pexpect (i.e. testing pretty printers).  This patch, suggested
    by Jan, helps isolate the test from the user's environment.
    
    Tested on RHEL 7 x86_64 with DTS 7 and EPEL, which is one
    magic combination of components that triggers this bug.

diff --git a/ChangeLog b/ChangeLog
index d9852ab..d3560ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-02-14  Jan Kratochvil <jan.kratochvil@redhat.com>
+
+	* scripts/test_printers_common.py: Set TERM to a known harmless
+	value.
+
 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
 
 	* sunrpc/xdr.c (xdr_int): Add fall-through comment.
diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py
index dada6aa..b2bd4ba 100644
--- a/scripts/test_printers_common.py
+++ b/scripts/test_printers_common.py
@@ -60,6 +60,10 @@ TIMEOUTFACTOR = os.environ.get('TIMEOUTFACTOR')
 if TIMEOUTFACTOR:
     timeout = int(TIMEOUTFACTOR)
 
+# Otherwise GDB is run in interactive mode and readline may send escape
+# sequences confusing output for pexpect.
+os.environ["TERM"]="dumb"
+
 try:
     # Check the gdb version.
     version_cmd = '{0} --version'.format(gdb_invocation, timeout=timeout)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                       |    5 +++++
 scripts/test_printers_common.py |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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