[PATCH] PR14291: KeyboardInterrupt not caught for Python output
Tom Tromey
tromey@redhat.com
Wed Jun 27 13:37:00 GMT 2012
>>>>> "Michael" == Michael Eager <eager@eagerm.com> writes:
Michael> 2012-06-25 Michael Eager <eager@eagercon.com>
Michael> * python/python.c (gdbpy_write): Check for interrupted
Michael> output.
This caused a regression:
FAIL: gdb.python/python.exp: verify pagination beforehand: q
FAIL: gdb.python/python.exp: verify pagination afterwards: q
I'm checking in the appended.
It just updates the regexps to match what is printed.
Tom
2012-06-27 Tom Tromey <tromey@redhat.com>
* gdb.python/python.exp: Fix regexps in pagination tests.
Index: gdb.python/python.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/python.exp,v
retrieving revision 1.34
diff -u -r1.34 python.exp
--- gdb.python/python.exp 22 Jun 2012 17:59:33 -0000 1.34
+++ gdb.python/python.exp 27 Jun 2012 13:35:24 -0000
@@ -112,7 +112,7 @@
pass $test
}
}
-gdb_test "q" "Quit" "verify pagination beforehand: q"
+gdb_test "q" "Quit.*Error while executing Python.*" "verify pagination beforehand: q"
gdb_test "python if gdb.execute('python print \"\\\\n\" * $lines', to_string=True) == \"\\n\" * [expr $lines + 1]: print \"yes\"" "yes" "gdb.execute does not page"
@@ -128,7 +128,7 @@
pass $test
}
}
-gdb_test "q" "Quit" "verify pagination afterwards: q"
+gdb_test "q" "Quit.*Error while executing Python.*" "verify pagination afterwards: q"
gdb_test_no_output "set height 0"
More information about the Gdb-patches
mailing list