From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Thomas Huth <thuth@redhat.com>,
Laurent Vivier <lvivier@redhat.com>,
qemu-devel@nongnu.org
Cc: "Daniel P . Berrangé" <berrange@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
"Bin Meng" <bin.meng@windriver.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Stefan Weil" <sw@weilnetz.de>
Subject: Re: [PATCH v4] tests/qtest: netdev: test stream and dgram backends
Date: Wed, 4 Jan 2023 16:41:38 +0100 [thread overview]
Message-ID: <71ecaaa7-b931-618c-4fc8-b6939c2cbdd3@linaro.org> (raw)
In-Reply-To: <410624e6-7547-8d38-9c05-dc2b51d29221@redhat.com>
On 4/1/23 15:38, Thomas Huth wrote:
> On 03/01/2023 12.00, Laurent Vivier wrote:
>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
>> Acked-by: Michael S. Tsirkin <mst@redhat.com>
>> ---
>>
>> Notes:
>> v4:
>> - rework EXPECT_STATE()
>> - use g_dir_make_tmp()
>> v3:
>> - Add "-M none" to avoid error:
>> "No machine specified, and there is no default"
>> v2:
>> - Fix ipv6 free port allocation
>> - Check for IPv4, IPv6, AF_UNIX
>> - Use g_mkdtemp() rather than g_file_open_tmp()
>> - Use socketpair() in test_stream_fd()
>> v1: compared to v14 of "qapi: net: add unix socket type support
>> to netdev backend":
>> - use IP addresses 127.0.0.1 and ::1 rather than localhost
>>
>> tests/qtest/meson.build | 2 +
>> tests/qtest/netdev-socket.c | 434 ++++++++++++++++++++++++++++++++++++
>> 2 files changed, 436 insertions(+)
>> create mode 100644 tests/qtest/netdev-socket.c
> [...]
>> +static void test_stream_fd(void)
>> +{
>> + QTestState *qts0, *qts1;
>> + int sock[2];
>> + int ret;
>> +
>> + ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, sock);
>
> I've put your patch into my queue, but this seems to fail on Windows:
>
> https://cirrus-ci.com/task/4869069434781696?logs=main#L6562
>
> Seems like socketpair() does not exist there?
There is qemu_socketpair() and since yesterday available
on win32:
https://lore.kernel.org/qemu-devel/20230103110814.3726795-7-marcandre.lureau@redhat.com/
next prev parent reply other threads:[~2023-01-04 15:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 11:00 [PATCH v4] tests/qtest: netdev: test stream and dgram backends Laurent Vivier
2023-01-03 14:08 ` Thomas Huth
2023-01-03 14:46 ` Laurent Vivier
2023-01-04 14:36 ` Thomas Huth
2023-01-04 14:38 ` Thomas Huth
2023-01-04 15:41 ` Philippe Mathieu-Daudé [this message]
2023-01-04 18:37 ` Thomas Huth
2023-01-04 20:10 ` Laurent Vivier
2023-01-05 6:24 ` Thomas Huth
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=71ecaaa7-b931-618c-4fc8-b6939c2cbdd3@linaro.org \
--to=philmd@linaro.org \
--cc=berrange@redhat.com \
--cc=bin.meng@windriver.com \
--cc=jasowang@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
--cc=thuth@redhat.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).