old-cross-binutils/gdb/testsuite/gdb.python
Simon Marchi f28a0564dd 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>
2014-11-27 09:27:08 -05:00
..
amd64-py-framefilter-invalidarg.S Fix crash on Python frame filters with unreadable arg 2014-09-07 14:09:59 +02:00
lib-types.cc
lib-types.exp
Makefile.in
py-arch.c
py-arch.exp Remove duplicated code on checking address 0x0 is accessiable 2014-08-09 08:46:32 +08:00
py-block.c
py-block.exp
py-breakpoint.c
py-breakpoint.exp Fix mingw32 failures due to incorrect directory separator in pattern 2014-10-17 11:28:17 -03:00
py-caller-is.c PR 15276: Add $_caller_is, $_caller_matches, $_any_caller_is, $_any_caller_matches 2014-09-06 09:15:44 -07:00
py-caller-is.exp PR 15276: Add $_caller_is, $_caller_matches, $_any_caller_is, $_any_caller_matches 2014-09-06 09:15:44 -07:00
py-cmd.c
py-cmd.exp Fix PR gdb/17035: "show user" doesn't list user-defined commands that 2014-09-07 20:12:19 -03:00
py-completion.exp PR python/16699: GDB Python command completion with overriden complete vs. completer class 2014-09-03 16:30:28 -04:00
py-completion.py PR python/16699: GDB Python command completion with overriden complete vs. completer class 2014-09-03 16:30:28 -04:00
py-error.exp
py-error.py
py-events-shlib.c
py-events.c GDB testsuite: Fix warnings with -std=gnu11 2014-11-13 10:20:44 +01:00
py-events.exp New python event "clear_objfiles". 2014-10-17 11:12:17 -07:00
py-events.py New python event "clear_objfiles". 2014-10-17 11:12:17 -07:00
py-evsignal.exp enable target async by default; separate MI and target notions of async 2014-05-29 14:38:02 +01:00
py-evthreads.c
py-evthreads.exp enable target async by default; separate MI and target notions of async 2014-05-29 14:38:02 +01:00
py-explore-cc.exp
py-explore.c
py-explore.cc
py-explore.exp
py-finish-breakpoint.c GDB testsuite: Fix warnings with -std=gnu11 2014-11-13 10:20:44 +01:00
py-finish-breakpoint.exp Copy .py files to remote host 2014-08-22 13:44:18 +08:00
py-finish-breakpoint.py
py-finish-breakpoint2.cc
py-finish-breakpoint2.exp Copy .py files to remote host 2014-08-22 13:44:18 +08:00
py-finish-breakpoint2.py
py-frame-args.c
py-frame-args.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-frame-args.py
py-frame-inline.c
py-frame-inline.exp
py-frame.c
py-frame.exp Add support for reading frame registers to Python API. 2014-09-03 16:34:47 -07:00
py-framefilter-gdb.py.in
py-framefilter-invalidarg-gdb.py.in Fix crash on Python frame filters with unreadable arg 2014-09-07 14:09:59 +02:00
py-framefilter-invalidarg.exp Fix crash on Python frame filters with unreadable arg 2014-09-07 14:09:59 +02:00
py-framefilter-invalidarg.py Fix crash on Python frame filters with unreadable arg 2014-09-07 14:09:59 +02:00
py-framefilter-mi.c GDB testsuite: More fixes for warnings with -std=gnu11 2014-11-17 10:26:31 +01:00
py-framefilter-mi.exp
py-framefilter.c GDB testsuite: More fixes for warnings with -std=gnu11 2014-11-17 10:26:31 +01:00
py-framefilter.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-framefilter.py
py-function.exp
py-inferior.c
py-inferior.exp
py-infthread.c
py-infthread.exp
py-linetable.c
py-linetable.exp Fix test always passing in python/py-linetable.exp 2014-11-27 09:27:08 -05:00
py-linetable.S
py-mi.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-objfile-script-gdb.py Rename py-objfile-script-gdb.py.in to py-objfile-script-gdb.py 2014-10-20 13:34:33 +08:00
py-objfile-script.c
py-objfile-script.exp Rename py-objfile-script-gdb.py.in to py-objfile-script-gdb.py 2014-10-20 13:34:33 +08:00
py-objfile.c
py-objfile.exp Add ability to add attributes to gdb.Objfile and gdb.Progspace objects. 2014-10-30 17:05:17 -07:00
py-parameter.exp Fix py-parameter.exp for remote host 2014-10-15 15:33:24 +08:00
py-pp-integral.c
py-pp-integral.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-pp-integral.py
py-pp-maint.c
py-pp-maint.exp
py-pp-maint.py
py-pp-re-notag.c
py-pp-re-notag.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-pp-re-notag.py
py-prettyprint.c
py-prettyprint.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-prettyprint.py
py-progspace.c
py-progspace.exp Add ability to add attributes to gdb.Objfile and gdb.Progspace objects. 2014-10-30 17:05:17 -07:00
py-prompt.c
py-prompt.exp testsuite: refactor spawn and wait for attach 2014-09-11 13:04:14 +01:00
py-section-script.c
py-section-script.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-section-script.py
py-shared-sl.c
py-shared.c
py-shared.exp
py-strfns.c
py-strfns.exp
py-symbol.c
py-symbol.exp Fix file name matching on remote host. 2014-10-15 15:33:24 +08:00
py-symtab.exp Fix file name matching on remote host. 2014-10-15 15:33:24 +08:00
py-sync-interp.c
py-sync-interp.exp testsuite: refactor spawn and wait for attach 2014-09-11 13:04:14 +01:00
py-template.cc
py-template.exp
py-type.c
py-type.exp
py-typeprint.cc
py-typeprint.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-typeprint.py
py-value-cc.cc
py-value-cc.exp
py-value.c
py-value.exp Skip testing argv[0] on target argv[0] isn't available 2014-10-18 20:58:06 +08:00
py-xmethods.cc Make xmethods tests not to depend on inferior IO. 2014-06-18 04:31:47 -07:00
py-xmethods.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-xmethods.py Fix xmethod Python so that it works with Python3. 2014-08-15 18:04:47 -07:00
python-1.c
python.c
python.exp Match the working directory on remote host 2014-11-02 21:08:06 +08:00
source1
source2.py