aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp b/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
index 6883b08..82a53a3 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
@@ -123,8 +123,7 @@ proc build_test_program {} {
}
set sources "$srcfile $asm_file"
- if {[build_executable $testfile.exp $testfile $sources {nodebug}]} {
- untested "failed to compile"
+ if {[build_executable "failed to compile" $testfile $sources {nodebug}]} {
return -1
}
}
@@ -245,6 +244,9 @@ proc do_mi_test {} {
}
}
-build_test_program
+if { [build_test_program] == -1 } {
+ return -1
+}
+
do_console_test
do_mi_test