public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug testsuite/31410] [gdb/testsuite] FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = off; run_args = *.unique-extension: first argument not expanded
Date: Mon, 26 Feb 2024 14:02:19 +0000	[thread overview]
Message-ID: <bug-31410-4717-o4vsqFq8BO@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31410-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=31410

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[gdb/Linaro CI progression] |[gdb/testsuite] FAIL:
                   |FAIL:                       |gdb.base/startup-with-shell
                   |gdb.base/startup-with-shell |.exp: startup_with_shell =
                   |.exp: startup_with_shell =  |off; run_args =
                   |off; run_args =             |*.unique-extension: first
                   |*.unique-extension: first   |argument not expanded
                   |argument not expanded       |
          Component|external                    |testsuite

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Maxim Kuvyrkov from comment #1)
> Hi Tom,
> 
> Yes, this annoys me as well, but the problem is a bit more complicated.  Our
> CI automatically updates xfails file, which includes both failed test in the
> baseline and flaky tests.
> 
> The problem with this test, is that it consistently fails in our post-commit
> CI jobs, but tends to pass in the pre-commit jobs.  Since we are using
> baseline results from the post-commit CI to compare pre-commit CI results
> against -- we get this "progression".
> 

Hi Maxim,

I see, interesting.

> We have it on our TODO list to fix this problem, but it requires digging
> into the GDB testsuite logic to understand where the different behavior is
> coming from.

Understood.

I managed to find the failure mode:
...
(gdb) PASS: gdb.base/startup-with-shell.exp: startup_with_shell = off; run_args
= *.unique-extension: inferior started
print argv[1]
$1 = 0xfffeda96
"/home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/startup-with-shell/*.unique-extens"...
(gdb) FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = off; run_args
= *.unique-extension: first argument not expanded
...
at
https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/lastSuccessfulBuild/artifact/artifacts/00-sumfiles/gdb.log.xz
.

I'm changing the component from external to testsuite.

I think the fix should be the same as in the commit mentioned in comment 0:
...
diff --git a/gdb/testsuite/gdb.base/startup-with-shell.exp
b/gdb/testsuite/gdb.base/startup-with-shell.exp
index d5ec503dceb..670fab6a543 100644
--- a/gdb/testsuite/gdb.base/startup-with-shell.exp
+++ b/gdb/testsuite/gdb.base/startup-with-shell.exp
@@ -66,6 +66,7 @@ with_test_prefix "startup_with_shell = on; run_args =
*.unique-extension" {

 with_test_prefix "startup_with_shell = off; run_args = *.unique-extension" {
     initial_setup_simple "off" "$unique_file_dir/*.unique-extension"
+    gdb_test_no_output "set print characters unlimited"
     gdb_test "print argv\[1\]" "\\\$$decimal = $hex
\"$unique_file_dir/\\\*\.unique-extension\"" \
        "first argument not expanded"
 }
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2024-02-26 14:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-24  9:04 [Bug external/31410] New: [gdb/Linaro CI progression] " vries at gcc dot gnu.org
2024-02-24  9:04 ` [Bug external/31410] " vries at gcc dot gnu.org
2024-02-26 13:10 ` maxim.kuvyrkov at gmail dot com
2024-02-26 14:02 ` vries at gcc dot gnu.org [this message]
2024-02-26 14:14 ` [Bug testsuite/31410] [gdb/testsuite] " tromey at sourceware dot org
2024-02-26 14:17 ` vries at gcc dot gnu.org
2024-02-26 14:59 ` cvs-commit at gcc dot gnu.org
2024-02-26 15:01 ` vries at gcc dot gnu.org
2024-02-26 15:14 ` thiago.bauermann at linaro dot org

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=bug-31410-4717-o4vsqFq8BO@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).