* [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine
@ 2023-01-19 12:05 Philippe Mathieu-Daudé
2023-01-19 12:05 ` [PATCH 1/3] tests/qtest/vnc-display-test: Suppress build warnings on Windows Philippe Mathieu-Daudé
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-01-19 12:05 UTC (permalink / raw)
To: qemu-devel
Cc: Fabiano Rosas, Paolo Bonzini, Akihiko Odaki, Laurent Vivier,
Daniel P . Berrangé, Thomas Huth, Marc-André Lureau,
Philippe Mathieu-Daudé
- Silent warnings on Windows
- Explicit the 'none' machine
- Disable on Darwin Aarch64 host
Philippe Mathieu-Daudé (3):
tests/qtest/vnc-display-test: Suppress build warnings on Windows
tests/qtest/vnc-display-test: Use the 'none' machine
tests/qtest/vnc-display-test: Disable on Darwin
tests/qtest/vnc-display-test.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
--
2.38.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/3] tests/qtest/vnc-display-test: Suppress build warnings on Windows
2023-01-19 12:05 [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Philippe Mathieu-Daudé
@ 2023-01-19 12:05 ` Philippe Mathieu-Daudé
2023-01-19 20:22 ` Richard Henderson
2023-01-19 12:05 ` [PATCH 2/3] tests/qtest/vnc-display-test: Use the 'none' machine Philippe Mathieu-Daudé
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-01-19 12:05 UTC (permalink / raw)
To: qemu-devel
Cc: Fabiano Rosas, Paolo Bonzini, Akihiko Odaki, Laurent Vivier,
Daniel P . Berrangé, Thomas Huth, Marc-André Lureau,
Philippe Mathieu-Daudé
While this test is skipped on Windows, we still get when building:
tests/qtest/vnc-display-test.c:22:20: warning: unused function 'on_vnc_error' [-Wunused-function]
static inline void on_vnc_error(VncConnection* self,
^
tests/qtest/vnc-display-test.c:28:20: warning: unused function 'on_vnc_auth_failure' [-Wunused-function]
static inline void on_vnc_auth_failure(VncConnection *self,
^
2 warnings generated.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/qtest/vnc-display-test.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/qtest/vnc-display-test.c b/tests/qtest/vnc-display-test.c
index e2a9d682bb..fd63e3a881 100644
--- a/tests/qtest/vnc-display-test.c
+++ b/tests/qtest/vnc-display-test.c
@@ -19,6 +19,8 @@ typedef struct Test {
GMainLoop *loop;
} Test;
+#if !defined(WIN32)
+
static void on_vnc_error(VncConnection* self,
const char* msg)
{
@@ -31,6 +33,8 @@ static void on_vnc_auth_failure(VncConnection *self,
g_error("vnc-auth-failure: %s", msg);
}
+#endif
+
static bool
test_setup(Test *test)
{
--
2.38.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/3] tests/qtest/vnc-display-test: Use the 'none' machine
2023-01-19 12:05 [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Philippe Mathieu-Daudé
2023-01-19 12:05 ` [PATCH 1/3] tests/qtest/vnc-display-test: Suppress build warnings on Windows Philippe Mathieu-Daudé
@ 2023-01-19 12:05 ` Philippe Mathieu-Daudé
2023-01-19 12:27 ` Fabiano Rosas
2023-01-19 20:23 ` Richard Henderson
2023-01-19 12:05 ` [RFC PATCH 3/3] tests/qtest/vnc-display-test: Disable on Darwin Philippe Mathieu-Daudé
` (2 subsequent siblings)
4 siblings, 2 replies; 10+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-01-19 12:05 UTC (permalink / raw)
To: qemu-devel
Cc: Fabiano Rosas, Paolo Bonzini, Akihiko Odaki, Laurent Vivier,
Daniel P . Berrangé, Thomas Huth, Marc-André Lureau,
Philippe Mathieu-Daudé
If we don't specify any machine, an architecture default
might be picked. But some architectures don't provide any
default, such ARM:
$ make check-qtest-aarch64
...
19/20 qemu:qtest+qtest-aarch64 / qtest-aarch64/vnc-display-test
qemu-system-aarch64: No machine specified, and there is no default
Since we don't need any particular machine to run this VNC
test, use the 'none' machine.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/qtest/vnc-display-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qtest/vnc-display-test.c b/tests/qtest/vnc-display-test.c
index fd63e3a881..df468c7b22 100644
--- a/tests/qtest/vnc-display-test.c
+++ b/tests/qtest/vnc-display-test.c
@@ -44,7 +44,7 @@ test_setup(Test *test)
#else
int pair[2];
- test->qts = qtest_init("-vnc none -name vnc-test");
+ test->qts = qtest_init("-M none -vnc none -name vnc-test");
g_assert_cmpint(qemu_socketpair(AF_UNIX, SOCK_STREAM, 0, pair), ==, 0);
--
2.38.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [RFC PATCH 3/3] tests/qtest/vnc-display-test: Disable on Darwin
2023-01-19 12:05 [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Philippe Mathieu-Daudé
2023-01-19 12:05 ` [PATCH 1/3] tests/qtest/vnc-display-test: Suppress build warnings on Windows Philippe Mathieu-Daudé
2023-01-19 12:05 ` [PATCH 2/3] tests/qtest/vnc-display-test: Use the 'none' machine Philippe Mathieu-Daudé
@ 2023-01-19 12:05 ` Philippe Mathieu-Daudé
2023-01-20 9:09 ` Daniel P. Berrangé
2023-01-19 12:31 ` [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Marc-André Lureau
2023-01-26 12:45 ` Thomas Huth
4 siblings, 1 reply; 10+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-01-19 12:05 UTC (permalink / raw)
To: qemu-devel
Cc: Fabiano Rosas, Paolo Bonzini, Akihiko Odaki, Laurent Vivier,
Daniel P . Berrangé, Thomas Huth, Marc-André Lureau,
Philippe Mathieu-Daudé
This test is failing in gtk-vnc on Darwin:
$ make check-qtest-aarch64
...
19/20 qemu:qtest+qtest-aarch64 / qtest-aarch64/vnc-display-test
ERROR **: 10:42:35.488: vnc-error: Unsupported auth type 17973672
While QEMU picks the sigaltstack coroutine backend, gtk-vnc uses
the ucontext coroutine backend, which might be broken on Darwin.
Disable this test (current problem being investigated in this thread:
https://lore.kernel.org/qemu-devel/Y8kw6X6keB5l53nl@redhat.com/).
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/qtest/vnc-display-test.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/vnc-display-test.c b/tests/qtest/vnc-display-test.c
index df468c7b22..e52a4326ec 100644
--- a/tests/qtest/vnc-display-test.c
+++ b/tests/qtest/vnc-display-test.c
@@ -19,7 +19,7 @@ typedef struct Test {
GMainLoop *loop;
} Test;
-#if !defined(WIN32)
+#if !defined(WIN32) && !defined(CONFIG_DARWIN)
static void on_vnc_error(VncConnection* self,
const char* msg)
@@ -41,6 +41,9 @@ test_setup(Test *test)
#ifdef WIN32
g_test_skip("Not supported on Windows yet");
return false;
+#elif defined(CONFIG_DARWIN)
+ g_test_skip("Broken on Darwin");
+ return false;
#else
int pair[2];
--
2.38.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] tests/qtest/vnc-display-test: Use the 'none' machine
2023-01-19 12:05 ` [PATCH 2/3] tests/qtest/vnc-display-test: Use the 'none' machine Philippe Mathieu-Daudé
@ 2023-01-19 12:27 ` Fabiano Rosas
2023-01-19 20:23 ` Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: Fabiano Rosas @ 2023-01-19 12:27 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Paolo Bonzini, Akihiko Odaki, Laurent Vivier,
Daniel P . Berrangé, Thomas Huth, Marc-André Lureau,
Philippe Mathieu-Daudé
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> If we don't specify any machine, an architecture default
> might be picked. But some architectures don't provide any
> default, such ARM:
>
> $ make check-qtest-aarch64
> ...
> 19/20 qemu:qtest+qtest-aarch64 / qtest-aarch64/vnc-display-test
> qemu-system-aarch64: No machine specified, and there is no default
>
> Since we don't need any particular machine to run this VNC
> test, use the 'none' machine.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine
2023-01-19 12:05 [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Philippe Mathieu-Daudé
` (2 preceding siblings ...)
2023-01-19 12:05 ` [RFC PATCH 3/3] tests/qtest/vnc-display-test: Disable on Darwin Philippe Mathieu-Daudé
@ 2023-01-19 12:31 ` Marc-André Lureau
2023-01-26 12:45 ` Thomas Huth
4 siblings, 0 replies; 10+ messages in thread
From: Marc-André Lureau @ 2023-01-19 12:31 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Fabiano Rosas, Paolo Bonzini, Akihiko Odaki,
Laurent Vivier, Daniel P . Berrangé, Thomas Huth
On Thu, Jan 19, 2023 at 4:05 PM Philippe Mathieu-Daudé
<philmd@linaro.org> wrote:
>
> - Silent warnings on Windows
> - Explicit the 'none' machine
> - Disable on Darwin Aarch64 host
>
> Philippe Mathieu-Daudé (3):
> tests/qtest/vnc-display-test: Suppress build warnings on Windows
> tests/qtest/vnc-display-test: Use the 'none' machine
> tests/qtest/vnc-display-test: Disable on Darwin
>
> tests/qtest/vnc-display-test.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> --
> 2.38.1
>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
--
Marc-André Lureau
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] tests/qtest/vnc-display-test: Suppress build warnings on Windows
2023-01-19 12:05 ` [PATCH 1/3] tests/qtest/vnc-display-test: Suppress build warnings on Windows Philippe Mathieu-Daudé
@ 2023-01-19 20:22 ` Richard Henderson
0 siblings, 0 replies; 10+ messages in thread
From: Richard Henderson @ 2023-01-19 20:22 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Fabiano Rosas, Paolo Bonzini, Akihiko Odaki, Laurent Vivier,
Daniel P . Berrangé, Thomas Huth, Marc-André Lureau
On 1/19/23 02:05, Philippe Mathieu-Daudé wrote:
> While this test is skipped on Windows, we still get when building:
>
> tests/qtest/vnc-display-test.c:22:20: warning: unused function 'on_vnc_error' [-Wunused-function]
> static inline void on_vnc_error(VncConnection* self,
> ^
> tests/qtest/vnc-display-test.c:28:20: warning: unused function 'on_vnc_auth_failure' [-Wunused-function]
> static inline void on_vnc_auth_failure(VncConnection *self,
> ^
> 2 warnings generated.
>
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
> tests/qtest/vnc-display-test.c | 4 ++++
> 1 file changed, 4 insertions(+)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] tests/qtest/vnc-display-test: Use the 'none' machine
2023-01-19 12:05 ` [PATCH 2/3] tests/qtest/vnc-display-test: Use the 'none' machine Philippe Mathieu-Daudé
2023-01-19 12:27 ` Fabiano Rosas
@ 2023-01-19 20:23 ` Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: Richard Henderson @ 2023-01-19 20:23 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Fabiano Rosas, Paolo Bonzini, Akihiko Odaki, Laurent Vivier,
Daniel P . Berrangé, Thomas Huth, Marc-André Lureau
On 1/19/23 02:05, Philippe Mathieu-Daudé wrote:
> If we don't specify any machine, an architecture default
> might be picked. But some architectures don't provide any
> default, such ARM:
>
> $ make check-qtest-aarch64
> ...
> 19/20 qemu:qtest+qtest-aarch64 / qtest-aarch64/vnc-display-test
> qemu-system-aarch64: No machine specified, and there is no default
>
> Since we don't need any particular machine to run this VNC
> test, use the 'none' machine.
>
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
> tests/qtest/vnc-display-test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RFC PATCH 3/3] tests/qtest/vnc-display-test: Disable on Darwin
2023-01-19 12:05 ` [RFC PATCH 3/3] tests/qtest/vnc-display-test: Disable on Darwin Philippe Mathieu-Daudé
@ 2023-01-20 9:09 ` Daniel P. Berrangé
0 siblings, 0 replies; 10+ messages in thread
From: Daniel P. Berrangé @ 2023-01-20 9:09 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Fabiano Rosas, Paolo Bonzini, Akihiko Odaki,
Laurent Vivier, Thomas Huth, Marc-André Lureau
On Thu, Jan 19, 2023 at 01:05:14PM +0100, Philippe Mathieu-Daudé wrote:
> This test is failing in gtk-vnc on Darwin:
>
> $ make check-qtest-aarch64
> ...
> 19/20 qemu:qtest+qtest-aarch64 / qtest-aarch64/vnc-display-test
> ERROR **: 10:42:35.488: vnc-error: Unsupported auth type 17973672
>
> While QEMU picks the sigaltstack coroutine backend, gtk-vnc uses
> the ucontext coroutine backend, which might be broken on Darwin.
s/might be/is completely and utterly/
The struct ucontext_t definition on macOS aarch64 is too small,
and so getcontext() smashes past the end of the struct overwriting
whatever follows the ucontext_t struct.
>
> Disable this test (current problem being investigated in this thread:
> https://lore.kernel.org/qemu-devel/Y8kw6X6keB5l53nl@redhat.com/).
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> tests/qtest/vnc-display-test.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
But keep an eye on this bug:
https://github.com/Homebrew/homebrew-core/issues/115413
if it gets fixed before you send a PULL request, we can drop
this patch, or failing that, revert it later.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine
2023-01-19 12:05 [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Philippe Mathieu-Daudé
` (3 preceding siblings ...)
2023-01-19 12:31 ` [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Marc-André Lureau
@ 2023-01-26 12:45 ` Thomas Huth
4 siblings, 0 replies; 10+ messages in thread
From: Thomas Huth @ 2023-01-26 12:45 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Fabiano Rosas, Paolo Bonzini, Akihiko Odaki, Laurent Vivier,
Daniel P . Berrangé, Marc-André Lureau
On 19/01/2023 13.05, Philippe Mathieu-Daudé wrote:
> - Silent warnings on Windows
> - Explicit the 'none' machine
> - Disable on Darwin Aarch64 host
>
> Philippe Mathieu-Daudé (3):
> tests/qtest/vnc-display-test: Suppress build warnings on Windows
> tests/qtest/vnc-display-test: Use the 'none' machine
> tests/qtest/vnc-display-test: Disable on Darwin
>
> tests/qtest/vnc-display-test.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
Thanks, added to my staging branch:
https://gitlab.com/thuth/qemu/-/commits/staging
Thomas
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-01-26 12:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 12:05 [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Philippe Mathieu-Daudé
2023-01-19 12:05 ` [PATCH 1/3] tests/qtest/vnc-display-test: Suppress build warnings on Windows Philippe Mathieu-Daudé
2023-01-19 20:22 ` Richard Henderson
2023-01-19 12:05 ` [PATCH 2/3] tests/qtest/vnc-display-test: Use the 'none' machine Philippe Mathieu-Daudé
2023-01-19 12:27 ` Fabiano Rosas
2023-01-19 20:23 ` Richard Henderson
2023-01-19 12:05 ` [RFC PATCH 3/3] tests/qtest/vnc-display-test: Disable on Darwin Philippe Mathieu-Daudé
2023-01-20 9:09 ` Daniel P. Berrangé
2023-01-19 12:31 ` [PATCH 0/3] tests/qtest/vnc-display-test: Silent warnings & explicit machine Marc-André Lureau
2023-01-26 12:45 ` Thomas Huth
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).