diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-10-18 13:58:57 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2018-10-19 11:03:38 +0100 |
commit | 1f1ae3a34faf8217bd253fa12b4d0abaaa42c2d2 (patch) | |
tree | 0bbaa3ffbfbe2d50e3ad4e4e9f8b40c8f83da52e /gdb/testsuite | |
parent | 0b347048e7e33070212a408dc2371075ee60b556 (diff) | |
download | fsf-binutils-gdb-1f1ae3a34faf8217bd253fa12b4d0abaaa42c2d2.zip fsf-binutils-gdb-1f1ae3a34faf8217bd253fa12b4d0abaaa42c2d2.tar.gz fsf-binutils-gdb-1f1ae3a34faf8217bd253fa12b4d0abaaa42c2d2.tar.bz2 |
Testsuite: compile-cplus-print.exp: Start inferior before compiling
skip_compile_feature_tests is only valid if the inferior has already
been started (see proc comments). Move the runto_main earlier.
2018-10-18 Alan Hayward <alan.hayward@arm.com>
* gdb.compile/compile-cplus-print.exp: Start inferior earlier.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-print.exp | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a7bd87d..0f00175 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-10-19 Alan Hayward <alan.hayward@arm.com> + + * gdb.compile/compile-cplus-print.exp: Start inferior earlier. + 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com> PR cli/23785 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-print.exp b/gdb/testsuite/gdb.compile/compile-cplus-print.exp index 5b84b14..3427cdd 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-print.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-print.exp @@ -33,6 +33,10 @@ if { [eval build_executable_from_specs ${testfile}.exp $testfile {$options} ${sr clean_restart ${testfile} +if ![runto_main] { + return -1 +} + if {[skip_compile_feature_tests]} { untested "compile command not supported (could not find libcc1 shared library?)" return -1 @@ -41,10 +45,6 @@ if {[skip_compile_feature_tests]} { gdb_test_no_output "set language c++" \ "Set language to C++" -if ![runto_main] { - return -1 -} - gdb_test "compile print varint" " = 10" gdb_test "compile print vararray" " = \\{1, 2, 3, 4, 5\\}" |