gdb/testsuite/
Fix a race. * gdb.cp/static-print-quit.exp (print c): Split to ... (print c - <return>, print c - q <return>, print c - to quit): ... these. Make the testfile untested on gdb-7.1.
This commit is contained in:
parent
55221e4b5a
commit
7db6f30f9d
|
@ -1,3 +1,10 @@
|
||||||
|
2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
Fix a race.
|
||||||
|
* gdb.cp/static-print-quit.exp (print c): Split to ...
|
||||||
|
(print c - <return>, print c - q <return>, print c - to quit):
|
||||||
|
... these. Make the testfile untested on gdb-7.1.
|
||||||
|
|
||||||
2011-5-05 Janis Johnson <janisjo@codesourcery.com>
|
2011-5-05 Janis Johnson <janisjo@codesourcery.com>
|
||||||
|
|
||||||
* lib/gdb.exp (exec_target_file, exec_symbol_file,
|
* lib/gdb.exp (exec_target_file, exec_symbol_file,
|
||||||
|
|
|
@ -30,14 +30,29 @@ clean_restart $executable
|
||||||
gdb_test_no_output "set width 80"
|
gdb_test_no_output "set width 80"
|
||||||
gdb_test_no_output "set height 2"
|
gdb_test_no_output "set height 2"
|
||||||
|
|
||||||
set test "print c"
|
set test "print c - <return>"
|
||||||
gdb_test_multiple $test $test {
|
gdb_test_multiple "print c" $test {
|
||||||
-re " = \{loooooooooooooooooooooooooooooooooooooooooooooong = 0, static field = \{\r\n---Type <return> to continue, or q <return> to quit---$" {
|
-re "\\$\[0-9\]+ = \{loooooooooooooooooooooooooooooooooooooooooooooong = 0, static field = \{\r\n---Type <return>" {
|
||||||
pass $test
|
pass $test
|
||||||
}
|
}
|
||||||
|
-re "\r\n---Type <return>" {
|
||||||
|
# gdb-7.1 did not crash with this testcase but it had the same bug.
|
||||||
|
untested ${testfile}.exp
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
set test "print c - q <return>"
|
||||||
|
gdb_test_multiple "" $test {
|
||||||
|
-re " to continue, or q <return>" {
|
||||||
|
pass $test
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
set test "print c - to quit"
|
||||||
|
gdb_test_multiple "" $test {
|
||||||
-re " to quit---$" {
|
-re " to quit---$" {
|
||||||
fail $test
|
pass $test
|
||||||
return -1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue