Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Sergio Durigan Junior <sergiodj@redhat.com>
Cc: Pedro Alves <palves@redhat.com>,
	gdb-patches@sourceware.org,
	Simon Marchi <simon.marchi@polymtl.ca>
Subject: [committed][gdb/testsuite] Add back missing debug for index-cache.exp
Date: Wed, 26 Jun 2019 03:55:00 -0000	[thread overview]
Message-ID: <5e25f29f-90a9-de6c-d7c4-5c48e14f1179@suse.de> (raw)
In-Reply-To: <87mui5scx1.fsf_-_@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

[ was: Re: Testcase regression (gdb.base/index-cache.exp) on x86_64
(was: Re: [PATCH][gdb/testsuite] Compile index-cache.c with
-Wl,--build-id) ]

On 25-06-19 21:06, Sergio Durigan Junior wrote:
> On Friday, June 21 2019, Tom de Vries wrote:
> 
>> Thanks for the review, I've updated the rationale.
>>
>> I'll commit in a bit unless there are further comments.
> 
> Hi Tom,
> 
> This has caused a testcase regression on x86_64.  It was caught by the
> BuildBot:
> 
>   https://sourceware.org/ml/gdb-testers/2019-q2/msg06515.html
> 
> The failures are:
> 
> PASS -> FAIL: gdb.base/index-cache.exp: test_cache_enabled_hit: check index-cache stats
> PASS -> FAIL: gdb.base/index-cache.exp: test_cache_enabled_miss: at least one file was created
> PASS -> FAIL: gdb.base/index-cache.exp: test_cache_enabled_miss: check index-cache stats
> PASS -> FAIL: gdb.base/index-cache.exp: test_cache_enabled_miss: expected file is there
> 

Fixed by patch attached below.

Committed.

Thanks,
- Tom

[-- Attachment #2: 0001-gdb-testsuite-Add-back-missing-debug-for-index-cache.exp.patch --]
[-- Type: text/x-patch, Size: 1193 bytes --]

[gdb/testsuite] Add back missing debug for index-cache.exp

The proc prepare_for_testing has "debug" as default argument for the options
parameter.

In the commit c596f180a1 "[gdb/testsuite] Compile index-cache.c with
-Wl,--build-id", by setting the options argument we've effectively dropped
"debug".  This causes index-cache.exp to not contain any debug info anymore on
most systems (though not on openSUSE), which causes index-cache.exp FAILs.

Fix this by adding back the missing "debug" option.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-06-26  Tom de Vries  <tdevries@suse.de>

	* gdb.base/index-cache.exp: Add back missing debug option.

---
 gdb/testsuite/gdb.base/index-cache.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/index-cache.exp b/gdb/testsuite/gdb.base/index-cache.exp
index 6f1488e037..f14cbb01ef 100644
--- a/gdb/testsuite/gdb.base/index-cache.exp
+++ b/gdb/testsuite/gdb.base/index-cache.exp
@@ -19,7 +19,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
-	  {additional_flags=-Wl,--build-id}] } {
+	  {debug additional_flags=-Wl,--build-id}] } {
     return
 }
 

      reply	other threads:[~2019-06-26  3:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-21 15:27 [PATCH][gdb/testsuite] Compile index-cache.c with -Wl,--build-id Tom de Vries
2019-06-21 15:47 ` Pedro Alves
2019-06-21 15:53   ` Simon Marchi
2019-06-21 15:54   ` Tom de Vries
2019-06-21 16:32     ` Pedro Alves
2019-06-21 16:51       ` Tom de Vries
2019-06-21 16:51         ` Tom de Vries
2019-06-25 19:06         ` Testcase regression (gdb.base/index-cache.exp) on x86_64 (was: Re: [PATCH][gdb/testsuite] Compile index-cache.c with -Wl,--build-id) Sergio Durigan Junior
2019-06-26  3:55           ` Tom de Vries [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5e25f29f-90a9-de6c-d7c4-5c48e14f1179@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=sergiodj@redhat.com \
    --cc=simon.marchi@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox