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

gdb and binutils branch master updated. f28a0564dded48d14df749f11f8ce7638d96db12


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 "gdb and binutils".

The branch, master has been updated
       via  f28a0564dded48d14df749f11f8ce7638d96db12 (commit)
      from  1036838a771b96ad9428e8fc7ecc45d3d8e056ce (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 -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f28a0564dded48d14df749f11f8ce7638d96db12

commit f28a0564dded48d14df749f11f8ce7638d96db12
Author: Simon Marchi <simon.marchi@ericsson.com>
Date:   Wed Nov 26 13:03:57 2014 -0500

    Fix test always passing in python/py-linetable.exp
    
    The following test is found in python/py-linetable.exp:
    
    gdb_test "python print sorted(fset)" \
        "\[20L, 21L, 22L, 24L, 25L, 28L, 29L, 30L, 32L, 33L, 37L, 39L, 40L, 42L, 44L, 45L, 46L\].*" \
        "Test frozen set contains line numbers"
    
    I noticed that it passed when using Python 3, even though it should fail
    because of the missing parentheses for the call print.
    
    There needs to be more escaping of the square brackets. Currently, it is
    interpreted as "any one character from this big list of characters,
    followed by .*". When adding the required amount of backslashes, the
    test starts failing as it should.
    
    Moreover, both in Python 2.7 and Python 3.3 the numbers don't have the L
    suffix, so now the test fails because of that. Anybody knows why they
    were there in the first place? I just tested with Python 2.4 and there
    are no Ls.
    
    gdb/testsuite/ChangeLog:
    
    	* gdb.python/py-linetable.exp: Escape properly sorted(fset)
    	test expected output.  Add parentheses for the call to print.
    	Remove L suffix from integers.
    
    Signed-off-by: Simon Marchi <simon.marchi@ericsson.com>

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

Summary of changes:
 gdb/testsuite/ChangeLog                   |    6 ++++++
 gdb/testsuite/gdb.python/py-linetable.exp |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gdb and binutils


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