From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93114 invoked by alias); 3 Apr 2016 18:30:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 93056 invoked by uid 89); 3 Apr 2016 18:30:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-languages-length:1558, 2514 X-HELO: smtp.electronicbox.net Received: from smtp.electronicbox.net (HELO smtp.electronicbox.net) (96.127.255.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 03 Apr 2016 18:30:29 +0000 Received: from localhost.localdomain (cable-192.222.137.139.electronicbox.net [192.222.137.139]) by smtp.electronicbox.net (Postfix) with ESMTP id 71A64440E7D; Sun, 3 Apr 2016 14:30:26 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH] Fix gdb.mi/mi-breakpoint-changed.exp for remote targets Date: Sun, 03 Apr 2016 18:30:00 -0000 Message-Id: <1459708224-8253-1-git-send-email-simon.marchi@polymtl.ca> X-SW-Source: 2016-04/txt/msg00021.txt.bz2 The libraries are never downloaded to the target for the first test (test_insert_delete_modify), so the executable can't run properly. I also added some with_test_prefix to help differentiate between the different test case phases. gdb/testsuite/ChangeLog: * gdb.mi/mi-breakpoint-changed.exp: Add some with_test_prefix. (test_insert_delete_modify): Call mi_load_shlibs before trying to run. --- gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp b/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp index c12f8b8..cda8c4a 100644 --- a/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp +++ b/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp @@ -45,12 +45,15 @@ if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" proc test_insert_delete_modify { } { global mi_gdb_prompt + global lib_sl1 lib_sl2 gdb_exit if [mi_gdb_start] { continue } + mi_load_shlibs $lib_sl1 $lib_sl2 + mi_run_to_main mi_gdb_test "break marker" \ @@ -150,7 +153,9 @@ proc test_insert_delete_modify { } { } } -test_insert_delete_modify +with_test_prefix "test_insert_delete_modify" { + test_insert_delete_modify +} # Test 'breakpoint-modified' notification is emited when pending breakpoints are # resolved. @@ -251,4 +256,6 @@ proc test_pending_resolved { } { } } -test_pending_resolved +with_test_prefix "test_pending_resolved" { + test_pending_resolved +} -- 2.8.0