From: Hao Wu <wuhaotsh@google.com>
To: Patrick Venture <venture@google.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Thomas Huth <thuth@redhat.com>,
Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>, Shengtan Mao <stmao@google.com>,
Chris Rauer <crauer@google.com>
Subject: Re: [PATCH v3] tests/qtest: add qtests for npcm7xx sdhci
Date: Thu, 24 Feb 2022 10:52:24 -0800 [thread overview]
Message-ID: <CAGcCb12Se254JJcKbnfyaMUTf=ym5TqOY41r4YNmvype6ozV-Q@mail.gmail.com> (raw)
In-Reply-To: <CAO=notx69LpfY2uHUaPeFSrRyNkoiATZ6-JQQrATT8jXGEfQWw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2096 bytes --]
The problem is probably because we read it in using "strcmp". strcmp
compares two strings that end with "\0". But one of the string is read in
using read() so it didn't read in the ending '\0' character.
We should use strncmp to compare the two strings. It probably avoids the
issue.
On Tue, Feb 22, 2022 at 5:28 PM Patrick Venture <venture@google.com> wrote:
>
>
> On Mon, Feb 21, 2022 at 5:30 AM Peter Maydell <peter.maydell@linaro.org>
> wrote:
>
>> On Wed, 16 Feb 2022 at 17:30, Peter Maydell <peter.maydell@linaro.org>
>> wrote:
>> >
>> > On Tue, 8 Feb 2022 at 18:18, Patrick Venture <venture@google.com>
>> wrote:
>> > >
>> > > From: Shengtan Mao <stmao@google.com>
>> > >
>> > > Reviewed-by: Hao Wu <wuhaotsh@google.com>
>> > > Reviewed-by: Chris Rauer <crauer@google.com>
>> > > Signed-off-by: Shengtan Mao <stmao@google.com>
>> > > Signed-off-by: Patrick Venture <venture@google.com>
>> > > ---
>> >
>> >
>> >
>> > Applied to target-arm.next, thanks.
>>
>> This hits assertions in some of the CI jobs, eg:
>> https://gitlab.com/qemu-project/qemu/-/jobs/2116932769
>>
>> 258/717 qemu:qtest+qtest-arm / qtest-arm/npcm7xx_sdhci-test INTERRUPT
>> 643.16s killed by signal 6 SIGABRT
>> ――――――――――――――――――――――――――――――――――――― ✀
>> ―――――――――――――――――――――――――――――――――――――
>> stderr:
>> ** Message: 06:06:50.205: /tmp/sdhci_F7ETH1
>> **
>> ERROR:../tests/qtest/npcm7xx_sdhci-test.c:101:sdwrite_read: assertion
>> failed: (!strcmp(rmsg, msg))
>>
>> ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
>> ...terminated.
>>
>> so I've dropped it again.
>>
>
> I'm sorry to hear that, I'll have to pick up some cycles in a week or so
> and see if I can reproduce the issue.
>
>
>>
>> thanks
>> -- PMM
>>
>
[-- Attachment #2: Type: text/html, Size: 3845 bytes --]
prev parent reply other threads:[~2022-02-24 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-08 18:18 [PATCH v3] tests/qtest: add qtests for npcm7xx sdhci Patrick Venture
2022-02-16 17:30 ` Peter Maydell
2022-02-21 13:29 ` Peter Maydell
2022-02-23 1:28 ` Patrick Venture
2022-02-24 18:52 ` Hao Wu [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='CAGcCb12Se254JJcKbnfyaMUTf=ym5TqOY41r4YNmvype6ozV-Q@mail.gmail.com' \
--to=wuhaotsh@google.com \
--cc=crauer@google.com \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stmao@google.com \
--cc=thuth@redhat.com \
--cc=venture@google.com \
/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 NNTP newsgroup(s).