diff mbox series

[05/10] tests/readconfig: spice doesn't support unix socket on windows yet

Message ID 20230103110814.3726795-6-marcandre.lureau@redhat.com (mailing list archive)
State New, archived
Headers show
Series Various win32 fixes & new 'get-win32-socket' QMP command | expand

Commit Message

Marc-André Lureau Jan. 3, 2023, 11:08 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 tests/qtest/readconfig-test.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Thomas Huth Jan. 3, 2023, 12:09 p.m. UTC | #1
On 03/01/2023 12.08, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>   tests/qtest/readconfig-test.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/qtest/readconfig-test.c b/tests/qtest/readconfig-test.c
> index c7a9b0c7dd..9ef870643d 100644
> --- a/tests/qtest/readconfig-test.c
> +++ b/tests/qtest/readconfig-test.c
> @@ -109,8 +109,10 @@ static void test_spice(void)
>       QTestState *qts;
>       const char *cfgdata =
>           "[spice]\n"
> -        "disable-ticketing = \"on\"\n"
> -        "unix = \"on\"\n";
> +#ifndef WIN32
> +        "unix = \"on\"\n"
> +#endif
> +        "disable-ticketing = \"on\"\n";
>   
>       qts = qtest_init_with_config(cfgdata);
>       /* Test valid command */

Reviewed-by: Thomas Huth <thuth@redhat.com>
diff mbox series

Patch

diff --git a/tests/qtest/readconfig-test.c b/tests/qtest/readconfig-test.c
index c7a9b0c7dd..9ef870643d 100644
--- a/tests/qtest/readconfig-test.c
+++ b/tests/qtest/readconfig-test.c
@@ -109,8 +109,10 @@  static void test_spice(void)
     QTestState *qts;
     const char *cfgdata =
         "[spice]\n"
-        "disable-ticketing = \"on\"\n"
-        "unix = \"on\"\n";
+#ifndef WIN32
+        "unix = \"on\"\n"
+#endif
+        "disable-ticketing = \"on\"\n";
 
     qts = qtest_init_with_config(cfgdata);
     /* Test valid command */