qtest: Fix the bug about disabling vnc causes "make check" hang
PATCH v2 1/1 qtest: Fix the bug about disabling vnc causes "make check" hang
When we disabling vnc from "./configure", the qemu can't use the vnc option. So qtest can't use the "vnc -none ", otherwise "make check" will hang.
---
v2: Consolidate VNC macro's #ifdef'ery to one central point (tests/libqtest.c).
tests/fdc-test.c | 5 +---- tests/ide-test.c | 3 --- tests/libqtest.c | 8 ++++++++ 3 files changed, 9 insertions(+), 7 deletions(-)
tests/fdc-test.c +1 -4
@@ -518,7 +518,6 @@ static void fuzz_registers(void)int main (int argc,char **argv) {const char *arch =qtest_get_arch (); -char *cmdline;int fd;int ret;
@@ -538,9 +537,7 @@ int main(int argc, char **argv)/* Run the tests */ g_test_init (&argc, &argv,NULL ); - cmdline =g_strdup_printf ("-vnc none " ); - -qtest_start (cmdline); +qtest_start (NULL );qtest_irq_intercept_in (global_qtest,"ioapic" );qtest_add_func ("/fdc/cmos" , test_cmos);qtest_add_func ("/fdc/no_media_on_start" , test_no_media_on_start);
tests/ide-test.c +0 -3
@@ -380,7 +380,6 @@ static void test_bmdma_no_busmaster(void)static void test_bmdma_setup (void ) {ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );
@@ -410,7 +409,6 @@ static void test_identify(void)int ret;ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );
@@ -455,7 +453,6 @@ static void test_flush(void)uint8_t data;ide_test_start ( -"-vnc none " "-drive file=blkdebug::%s,if=ide,cache=writeback" , tmp_path);
tests/libqtest.c +8 -0
@@ -35,6 +35,12 @@#define MAX_IRQ 256 +#ifdef CONFIG_VNC +static const char *qtest_vnc_param ="-vnc none " ; +#else +static const char *qtest_vnc_param =NULL ; +#endif +QTestState *global_qtest;struct QTestState
@@ -136,8 +142,10 @@ QTestState *qtest_init(const char *extra_args)"-pidfile %s " "-machine accel=qtest " "-display none " +"%s" "%s" , qemu_binary, s->socket_path, s->qmp_socket_path, pid_file, + qtest_vnc_param ?:"" , extra_args ?: "");execlp ("/bin/sh" ,"sh" ,"-c" , command,NULL );exit (1 );
Signature · 1 line
1.7.1
Quoted 1 line · Kewei Yu
When we disabling vnc from "./configure", the qemu can't use the vnc option.
"disable", -"the", "QEMU",
Quoted 2 lines
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Curious, why exactly does make check hang? Shouldn't it just fail with an error result in this case?
Quoted 78 lines
Signed-off-by Kewei Yu <[email protected]>---
v2: Consolidate VNC macro's #ifdef'ery to one central point (tests/libqtest.c).tests/fdc-test.c | 5 +---- tests/ide-test.c | 3 --- tests/libqtest.c | 8 ++++++++ 3 files changed, 9 insertions(+), 7 deletions(-)tests/fdc-test.c +1
-4@@ -518,7 +518,6 @@ static void fuzz_registers(void)int main (int argc,char **argv) {const char *arch =qtest_get_arch (); -char *cmdline;int fd;int ret;@@ -538,9 +537,7 @@ int main(int argc, char **argv)/* Run the tests */ g_test_init (&argc, &argv,NULL ); - cmdline =g_strdup_printf ("-vnc none " ); - -qtest_start (cmdline); +qtest_start (NULL );qtest_irq_intercept_in (global_qtest,"ioapic" );qtest_add_func ("/fdc/cmos" , test_cmos);qtest_add_func ("/fdc/no_media_on_start" , test_no_media_on_start);tests/ide-test.c +0
-3@@ -380,7 +380,6 @@ static void test_bmdma_no_busmaster(void)static void test_bmdma_setup (void ) {ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );@@ -410,7 +409,6 @@ static void test_identify(void)int ret;ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );@@ -455,7 +453,6 @@ static void test_flush(void)uint8_t data;ide_test_start ( -"-vnc none " "-drive file=blkdebug::%s,if=ide,cache=writeback" , tmp_path);tests/libqtest.c +6
-0@@ -35,6 +35,12 @@#define MAX_IRQ 256 +#ifdef CONFIG_VNC +static const char *qtest_vnc_param ="-vnc none " ; +#else +static const char *qtest_vnc_param =NULL ; +#endif +QTestState *global_qtest;struct QTestState
tests/libqtest.c QTestState *qtest_init(const char *extra_args) · line 148
Quoted 7 lines
tests/libqtest.c +2
-0@@ -136,8 +142,10 @@ QTestState *qtest_init(const char *extra_args)"-pidfile %s " "-machine accel=qtest " "-display none " +"%s" "%s" , qemu_binary, s->socket_path, s->qmp_socket_path, pid_file, + qtest_vnc_param ?: "",
I do vaguely remember someone going to efforts to remove uses of "? :
foo" (with the blank true value).
Regards,
Peter
Quoted 7 lines
tests/libqtest.c +0
-1extra_args ?: "");execlp ("/bin/sh" ,"sh" ,"-c" , command,NULL );exit (1 ); --1.7.1
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 6 lines · Kewei Yu
Quoted 1 line
When we disabling vnc from "./configure", the qemu can't use the vnc
option.
"disable", -"the", "QEMU",
Do you mean "s/disabling/disable; s/the\ qemu/QEMU"?
Quoted 7 lines
Quoted 3 lines
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Curious, why exactly does make check hang? Shouldn't it just fail with an error result in this case?
Yeah, there is an error result "VNC support is disabled".
Quoted 78 lines
Quoted 4 lines
Signed-off-by Kewei Yu <[email protected]>---
v2: Consolidate VNC macro's #ifdef'ery to one central point(
tests/libqtest.c).Quoted 73 lines
tests/fdc-test.c | 5 +---- tests/ide-test.c | 3 --- tests/libqtest.c | 8 ++++++++ 3 files changed, 9 insertions(+), 7 deletions(-)tests/fdc-test.c +1
-4@@ -518,7 +518,6 @@ static void fuzz_registers(void)int main (int argc,char **argv) {const char *arch =qtest_get_arch (); -char *cmdline;int fd;int ret;@@ -538,9 +537,7 @@ int main(int argc, char **argv)/* Run the tests */ g_test_init (&argc, &argv,NULL ); - cmdline =g_strdup_printf ("-vnc none " ); - -qtest_start (cmdline); +qtest_start (NULL );qtest_irq_intercept_in (global_qtest,"ioapic" );qtest_add_func ("/fdc/cmos" , test_cmos);qtest_add_func ("/fdc/no_media_on_start" , test_no_media_on_start);tests/ide-test.c +0
-3@@ -380,7 +380,6 @@ static void test_bmdma_no_busmaster(void)static void test_bmdma_setup (void ) {ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );@@ -410,7 +409,6 @@ static void test_identify(void)int ret;ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );@@ -455,7 +453,6 @@ static void test_flush(void)uint8_t data;ide_test_start ( -"-vnc none " "-drive file=blkdebug::%s,if=ide,cache=writeback" , tmp_path);tests/libqtest.c +6
-0@@ -35,6 +35,12 @@#define MAX_IRQ 256 +#ifdef CONFIG_VNC +static const char *qtest_vnc_param ="-vnc none " ; +#else +static const char *qtest_vnc_param =NULL ; +#endif +QTestState *global_qtest;
Quoted 12 lines
tests/libqtest.c QTestState *qtest_init(const char *extra_args) · line 148
Quoted 9 lines
tests/libqtest.c +2
-0struct QTestState @@ -136,8 +142,10 @@ QTestState *qtest_init(const char *extra_args)"-pidfile %s " "-machine accel=qtest " "-display none " +"%s" "%s" , qemu_binary, s->socket_path, s->qmp_socket_path, pid_file, + qtest_vnc_param ?: "",I do vaguely remember someone going to efforts to remove uses of "? :
foo" (with the blank true value).
I'm not clear the sentence's meaning.
Quoted 12 lines
Regards,
PeterQuoted 7 lines
tests/libqtest.c +0
-1extra_args ?: "");execlp ("/bin/sh" ,"sh" ,"-c" , command,NULL );exit (1 ); --1.7.1
Thanks
Kewei
Peter:
Happy new year, Today is new year's day, so I will present the v3
patch according to your suggestions tomorrow , thanks for your review.
Faithfully yours
Kewei Yu
2013/12/31 Kewei Yu <[email protected]>
Quoted 129 lines
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 6 lines · Kewei Yu
Quoted 1 line
When we disabling vnc from "./configure", the qemu can't use the vnc
option.
"disable", -"the", "QEMU",
Do you mean "s/disabling/disable; s/the\ qemu/QEMU"?
Quoted 7 lines
Quoted 3 lines
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Curious, why exactly does make check hang? Shouldn't it just fail with an error result in this case?
Yeah, there is an error result "VNC support is disabled".
Quoted 78 lines
Quoted 4 lines
Signed-off-by Kewei Yu <[email protected]>---
v2: Consolidate VNC macro's #ifdef'ery to one central point(
tests/libqtest.c).Quoted 73 lines
tests/fdc-test.c | 5 +---- tests/ide-test.c | 3 --- tests/libqtest.c | 8 ++++++++ 3 files changed, 9 insertions(+), 7 deletions(-)tests/fdc-test.c +1
-4@@ -518,7 +518,6 @@ static void fuzz_registers(void)int main (int argc,char **argv) {const char *arch =qtest_get_arch (); -char *cmdline;int fd;int ret;@@ -538,9 +537,7 @@ int main(int argc, char **argv)/* Run the tests */ g_test_init (&argc, &argv,NULL ); - cmdline =g_strdup_printf ("-vnc none " ); - -qtest_start (cmdline); +qtest_start (NULL );qtest_irq_intercept_in (global_qtest,"ioapic" );qtest_add_func ("/fdc/cmos" , test_cmos);qtest_add_func ("/fdc/no_media_on_start" , test_no_media_on_start);tests/ide-test.c +0
-3@@ -380,7 +380,6 @@ static void test_bmdma_no_busmaster(void)static void test_bmdma_setup (void ) {ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );@@ -410,7 +409,6 @@ static void test_identify(void)int ret;ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );@@ -455,7 +453,6 @@ static void test_flush(void)uint8_t data;ide_test_start ( -"-vnc none " "-drive file=blkdebug::%s,if=ide,cache=writeback" , tmp_path);tests/libqtest.c +6
-0@@ -35,6 +35,12 @@#define MAX_IRQ 256 +#ifdef CONFIG_VNC +static const char *qtest_vnc_param ="-vnc none " ; +#else +static const char *qtest_vnc_param =NULL ; +#endif +QTestState *global_qtest;Quoted 12 lines
tests/libqtest.c QTestState *qtest_init(const char *extra_args) · line 148
Quoted 9 lines
tests/libqtest.c +2
-0struct QTestState @@ -136,8 +142,10 @@ QTestState *qtest_init(const char *extra_args)"-pidfile %s " "-machine accel=qtest " "-display none " +"%s" "%s" , qemu_binary, s->socket_path, s->qmp_socket_path, pid_file, + qtest_vnc_param ?: "",I do vaguely remember someone going to efforts to remove uses of "? :
foo" (with the blank true value).I'm not clear the sentence's meaning.
Quoted 12 lines
Regards,
PeterQuoted 7 lines
tests/libqtest.c +0
-1extra_args ?: "");execlp ("/bin/sh" ,"sh" ,"-c" , command,NULL );exit (1 ); --1.7.1
Thanks
Kewei
Quoted 11 lines · Kewei Yu
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 8 lines · Kewei Yu
Quoted 3 lines
"%s", qemu_binary, s->socket_path, s->qmp_socket_path, pid_file,+
qtest_vnc_param?: "",I do vaguely remember someone going to efforts to remove uses of "? :
foo" (with the blank true value).I'm not clear the sentence's meaning.
Using the ternary operator "X ? Y : Z" with an empty 2nd operand "X ?: Y" is not standard C. It's a GCC extension. There was a suggestion a year or so back that we should remove the uses of it, but the consensus was that this was unnecessary, since in practice we rely on other GCC extensions. Clang also supports this syntax, and it's the only other compiler we care about.
In this case it seems reasonable, especially since the line immediately below this addition is using it too.
thanks
-- PMM
2014/1/1 Peter Maydell <[email protected]>
Quoted 11 lines · Kewei Yu
Quoted 10 lines
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 8 lines · Kewei Yu
Quoted 3 lines
"%s", qemu_binary, s->socket_path, s->qmp_socket_path, pid_file,+
qtest_vnc_param?: "",I do vaguely remember someone going to efforts to remove uses of "? :
foo" (with the blank true value).
Quoted 10 lines
Quoted 1 line
I'm not clear the sentence's meaning.
Using the ternary operator "X ? Y : Z" with an empty 2nd operand "X ?: Y" is not standard C. It's a GCC extension. There was a suggestion a year or so back that we should remove the uses of it, but the consensus was that this was unnecessary, since in practice we rely on other GCC extensions. Clang also supports this syntax, and it's the only other compiler we care about.
Oh! Thank you, I got it.
In this case it seems reasonable, especially since the line
Quoted 2 lines
immediately below this addition is using it too.
But,do I need to fix them to be "X ? Y : Z" and keep them consistent?
Faithfully yours
Kewei Yu
thanks
Quoted 2 lines
-- PMM
Quoted 24 lines · Kewei Yu
2014/1/1 Peter Maydell <[email protected]>
Quoted 12 lines · Kewei Yu
Quoted 10 lines
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 8 lines · Kewei Yu
Quoted 3 lines
"%s", qemu_binary, s->socket_path, s->qmp_socket_path, pid_file,+
qtest_vnc_param?: "",I do vaguely remember someone going to efforts to remove uses of "? :
foo" (with the blank true value).Quoted 9 lines
Quoted 1 line
I'm not clear the sentence's meaning.
Using the ternary operator "X ? Y : Z" with an empty 2nd operand "X ?: Y" is not standard C. It's a GCC extension. There was a suggestion a year or so back that we should remove the uses of it, but the consensus was that this was unnecessary, since in practice we rely on other GCC extensions. Clang also supports this syntax, and it's the only other compiler we care about.
Quoted 8 lines
Oh! Thank you, I got it.
Quoted 2 lines
In this case it seems reasonable, especially since the line immediately below this addition is using it too.
But,do I need to fix them to be "X ? Y : Z" and keep them consistent?
No, it's already consistent. No change to patch required. Apart from the grammar and spelling.
Regards,
Peter
Quoted 8 lines
Faithfully yours
Kewei YuQuoted 2 lines
thanks
-- PMM
Quoted 9 lines · Kewei Yu
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 6 lines · Kewei Yu
Quoted 2 lines
When we disabling vnc from "./configure", the qemu can't use the vnc option.
"disable", -"the", "QEMU",
Do you mean "s/disabling/disable; s/the\ qemu/QEMU"?
Yes.
Quoted 9 lines
Quoted 7 lines
Quoted 4 lines
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Curious, why exactly does make check hang? Shouldn't it just fail with an error result in this case?
Yeah, there is an error result "VNC support is disabled".
I think its just terminology then. s/hangs/fails.
Happy New Year,
Peter
Quoted 110 lines
Quoted 79 lines
Quoted 79 lines
Signed-off-by Kewei Yu <[email protected]>---
v2: Consolidate VNC macro's #ifdef'ery to one central point
(tests/libqtest.c).tests/fdc-test.c | 5 +---- tests/ide-test.c | 3 --- tests/libqtest.c | 8 ++++++++ 3 files changed, 9 insertions(+), 7 deletions(-)tests/fdc-test.c +1
-4@@ -518,7 +518,6 @@ static void fuzz_registers(void)int main (int argc,char **argv) {const char *arch =qtest_get_arch (); -char *cmdline;int fd;int ret;@@ -538,9 +537,7 @@ int main(int argc, char **argv)/* Run the tests */ g_test_init (&argc, &argv,NULL ); - cmdline =g_strdup_printf ("-vnc none " ); - -qtest_start (cmdline); +qtest_start (NULL );qtest_irq_intercept_in (global_qtest,"ioapic" );qtest_add_func ("/fdc/cmos" , test_cmos);qtest_add_func ("/fdc/no_media_on_start" , test_no_media_on_start);tests/ide-test.c +0
-3@@ -380,7 +380,6 @@ static void test_bmdma_no_busmaster(void)static void test_bmdma_setup (void ) {ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );@@ -410,7 +409,6 @@ static void test_identify(void)int ret;ide_test_start ( -"-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s" , tmp_path,"testdisk" ,"version" );@@ -455,7 +453,6 @@ static void test_flush(void)uint8_t data;ide_test_start ( -"-vnc none " "-drive file=blkdebug::%s,if=ide,cache=writeback" , tmp_path);tests/libqtest.c +6
-0@@ -35,6 +35,12 @@#define MAX_IRQ 256 +#ifdef CONFIG_VNC +static const char *qtest_vnc_param ="-vnc none " ; +#else +static const char *qtest_vnc_param =NULL ; +#endif +QTestState *global_qtest;Quoted 12 lines
tests/libqtest.c QTestState *qtest_init(const char *extra_args) · line 148
Quoted 9 lines
tests/libqtest.c +2
-0struct QTestState @@ -136,8 +142,10 @@ QTestState *qtest_init(const char *extra_args)"-pidfile %s " "-machine accel=qtest " "-display none " +"%s" "%s" , qemu_binary, s->socket_path, s->qmp_socket_path, pid_file, + qtest_vnc_param ?: "",I do vaguely remember someone going to efforts to remove uses of "? :
foo" (with the blank true value).I'm not clear the sentence's meaning.
Quoted 12 lines
Regards,
PeterQuoted 7 lines
tests/libqtest.c +0
-1extra_args ?: "");execlp ("/bin/sh" ,"sh" ,"-c" , command,NULL );exit (1 ); --1.7.1
Thanks
Kewei
Am 01.01.2014 05:40, schrieb Peter Crosthwaite:
Quoted 5 lines · Kewei Yu
Quoted 4 lines
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 3 lines · Kewei Yu
Quoted 2 lines
When we disabling vnc from "./configure", the qemu can't use the vnc option.
[...]
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Curious, why exactly does make check hang? Shouldn't it just fail with an error result in this case?
Yeah, there is an error result "VNC support is disabled".
I think its just terminology then. s/hangs/fails.
Actually no. When qtest gets an unsupported command line argument, so that QEMU exits right away, then qtest hangs, waiting for the process. This was easily reproducible by mistyping machine names in my qom-test. That's a separate issue though.
Regards,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
2014/1/2 Andreas Färber <[email protected]>
Quoted 12 lines
Am 01.01.2014 05:40, schrieb Peter Crosthwaite:
Quoted 5 lines · Kewei Yu
Quoted 4 lines
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 3 lines · Kewei Yu
Quoted 2 lines
When we disabling vnc from "./configure", the qemu can't use the vnc option.
[...]
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Curious, why exactly does make check hang? Shouldn't it just fail with an error result in this case?
Quoted 9 lines
Quoted 3 lines
Quoted 1 line
Yeah, there is an error result "VNC support is disabled".
I think its just terminology then. s/hangs/fails.
Actually no. When qtest gets an unsupported command line argument, so that QEMU exits right away, then qtest hangs, waiting for the process. This was easily reproducible by mistyping machine names in my qom-test. That's a separate issue though.
Yeah, It actually waits for the a handler and doesn't exit from "make check".
Maybe I didn't show a detailed description.
So, Should I submit the patch v4?
Quoted 8 lines
Regards,
Andreas--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 25 lines · Kewei Yu
2014/1/2 Andreas Färber <[email protected]>
Quoted 14 lines
Am 01.01.2014 05:40, schrieb Peter Crosthwaite:
Quoted 5 lines · Kewei Yu
Quoted 4 lines
2013/12/31 Peter Crosthwaite <[email protected]>
Quoted 3 lines · Kewei Yu
Quoted 2 lines
When we disabling vnc from "./configure", the qemu can't use the vnc option.
[...]
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Curious, why exactly does make check hang? Shouldn't it just fail with an error result in this case?
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Yeah, there is an error result "VNC support is disabled".
I think its just terminology then. s/hangs/fails.
Actually no. When qtest gets an unsupported command line argument, so that QEMU exits right away, then qtest hangs, waiting for the process. This was easily reproducible by mistyping machine names in my qom-test. That's a separate issue though.
Quoted 4 lines
Yeah, It actually waits for the a handler and doesn't exit from "make check".
Maybe I didn't show a detailed description.
So, Should I submit the patch v4?
Probably not just for this. "fails" is fine.
Regards,
Peter
Quoted 10 lines
Quoted 8 lines
Regards,
Andreas--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Il 31/12/2013 05:42, Kewei Yu ha scritto:
Quoted 6 lines
When we disabling vnc from "./configure", the qemu can't use the vnc option. So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Signed-off-by Kewei Yu <[email protected]>---
v2: Consolidate VNC macro's #ifdef'ery to one central point (tests/libqtest.c).
What happens if qtest instead uses "-display none"?
Paolo
The fail is caused by "-vnc none", we can't use it when disable vnc from "./configure".
Faithfully yours
Kewei Yu
2014/1/2 Paolo Bonzini <[email protected]>
Quoted 14 lines
Il 31/12/2013 05:42, Kewei Yu ha scritto:
Quoted 1 line
When we disabling vnc from "./configure", the qemu can't use the vnc
option.
Quoted 5 lines
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Signed-off-by Kewei Yu <[email protected]>---
v2: Consolidate VNC macro's #ifdef'ery to one central point(
tests/libqtest.c).What happens if qtest instead uses "-display none"?
Paolo
Am 02.01.2014 09:15, schrieb Paolo Bonzini:
Quoted 9 lines
Il 31/12/2013 05:42, Kewei Yu ha scritto:
Quoted 6 lines
When we disabling vnc from "./configure", the qemu can't use the vnc option. So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Signed-off-by Kewei Yu <[email protected]>---
v2: Consolidate VNC macro's #ifdef'ery to one central point (tests/libqtest.c).What happens if qtest instead uses "-display none"?
It does use that, since the commit I pointed to in v1. :)
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Il 02/01/2014 15:45, Andreas Färber ha scritto:
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
v2: Consolidate VNC macro's #ifdef'ery to one central point (
tests/libqtest.c).What happens if qtest instead uses "-display none"?
It does use that, since the commit I pointed to in v1. :)
And why do you need at all "-vnc none" if it also uses "-display none"?
Paolo
2014/1/3 Paolo Bonzini <[email protected]>
Quoted 8 lines
Il 02/01/2014 15:45, Andreas Färber ha scritto:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
v2: Consolidate VNC macro's #ifdef'ery to one central point
(
tests/libqtest.c).Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
What happens if qtest instead uses "-display none"?
It does use that, since the commit I pointed to in v1. :)
And why do you need at all "-vnc none" if it also uses "-display none"?
Yeah, if "-display none", the vnc_display will be NULL in vl.c:4313, So the vnc is not initialized.
So, the "-vnc none" is excrescent.
Quoted 3 lines
Paolo
Kewei