aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2018-08-16 14:37:49 -0700
committerKeith Seitz <keiths@redhat.com>2018-08-16 17:00:16 -0700
commitc1854f1d5a8fb5d86c7ac6d118348759cfa8c393 (patch)
tree382128e97e9ee88d7513e6f7153f6fa2708b46b4 /gdb/testsuite/gdb.arch
parent2cdcc33021214e77c2c185aa78ad4f9ae1b9e565 (diff)
downloadgdb-c1854f1d5a8fb5d86c7ac6d118348759cfa8c393.zip
gdb-c1854f1d5a8fb5d86c7ac6d118348759cfa8c393.tar.gz
gdb-c1854f1d5a8fb5d86c7ac6d118348759cfa8c393.tar.bz2
Use gdb_test_no_output for compile tests expected to pass
There is a small think-o in compile.exp: if { $srcfile3 != "" } { gdb_test "p constvar" " = 3" gdb_test "info addr constvar" {Symbol "constvar" is constant\.} gdb_test "compile code globalvar = constvar;"; # INCORRECT gdb_test "print globalvar" " = 3" "print constvar value" } else { untested "print constvar value" } The line marked INCORRECT runs a simple "compile code" which is expected to succeed. When this happens, the compile plug-in and GDB will not output anything. The use of gdb_test matches against anything. This is certainly not the intent, and this patch corrects the two instances of this in the file. [The rest of gdb.compile looks okay.] testsuite/ChangeLog: * gdb.compile/compile.exp: Use gdb_test_no_output for "compile code" tests expected to pass.
Diffstat (limited to 'gdb/testsuite/gdb.arch')
0 files changed, 0 insertions, 0 deletions