Marc-André Lureau
1ef64f1482
test-char: fix random socket test failure
...
Peter reported a test failure on FreeBSD with the new reconnect test:
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
gtester -k --verbose -m=quick tests/test-char
TEST: tests/test-char... (pid=16190)
/char/null: OK
/char/invalid: OK
/char/ringbuf: OK
/char/mux: OK
/char/stdio: OK
/char/pipe: OK
/char/file: OK
/char/file-fifo: OK
/char/udp: OK
/char/serial: OK
/char/hotswap: OK
/char/socket/basic: OK
/char/socket/reconnect: FAIL
GTester: last random seed: R02S521380d9c12f1dac3ad1763bf5665c27
(pid=16367)
/char/socket/fdpass: OK
FAIL: tests/test-char
**
ERROR:tests/test-char.c:353:char_socket_test_common: assertion failed:
(object_property_get_bool(OBJECT(chr_client), "connected",
&error_abort))
It turns out that the socket test code checks both server and client
connection states, but doesn't wait for both.
Wait for the client side as well.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20180823143125.16767-5-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-10-02 19:09:12 +02:00
..
2018-06-15 16:10:11 -03:00
2018-09-07 17:43:22 -04:00
2018-02-22 15:44:07 -08:00
2018-09-10 11:50:06 +08:00
2018-06-08 14:39:24 -03:00
2018-08-16 14:05:28 +01:00
2018-06-08 14:39:24 -03:00
2018-08-31 09:53:09 +02:00
2018-09-26 13:20:36 +01:00
2018-03-21 15:13:40 +01:00
2018-08-31 09:53:10 +02:00
2018-10-01 19:13:46 +02:00
2018-09-25 11:05:56 +01:00
2018-09-26 10:46:28 +08:00
2018-07-24 11:45:25 +01:00
2018-08-16 09:50:54 +01:00
2018-10-02 18:47:55 +02:00
2018-08-23 18:46:25 +02:00
2018-07-02 15:41:17 +02:00
2018-07-02 15:41:17 +02:00
2018-07-02 15:41:17 +02:00
2018-06-11 22:19:57 +03:00
2018-08-23 18:46:25 +02:00
2018-06-08 13:17:39 -04:00
2018-02-14 11:43:41 +01:00
2018-09-25 11:12:25 +10:00
2018-08-16 08:42:06 +02:00
2018-08-15 08:12:19 +02:00
2018-06-15 14:49:44 +02:00
2018-08-24 20:26:37 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-07-28 09:09:58 +02:00
2018-07-28 09:09:58 +02:00
2018-08-23 18:46:23 +02:00
2018-07-03 13:04:38 +01:00
2018-07-03 13:04:38 +01:00
2018-07-24 17:33:39 +01:00
2018-08-23 18:46:25 +02:00
2018-08-31 09:53:10 +02:00
2018-02-14 11:43:41 +01:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-23 18:46:25 +02:00
2018-08-15 12:50:39 +02:00
2018-08-16 14:05:28 +01:00
2018-02-14 11:43:02 +01:00
2018-08-16 09:50:54 +01:00
2018-02-09 13:50:17 +01:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-31 09:53:10 +02:00
2018-08-31 09:53:10 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-28 11:31:23 +10:00
2018-10-02 18:47:55 +02:00
2018-02-14 11:43:41 +01:00
2018-09-26 17:29:01 +01:00
2018-08-16 08:42:06 +02:00
2018-06-08 13:15:32 +01:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-07-09 14:51:34 +01:00
2018-05-04 08:27:53 +02:00
2018-02-14 11:43:41 +01:00
2018-05-04 08:27:53 +02:00
2018-09-26 08:55:54 -07:00
2018-08-31 09:53:10 +02:00
2018-09-24 18:08:07 +02:00
2018-08-23 18:46:23 +02:00
2018-03-12 16:12:47 +01:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:02 +01:00
2018-08-16 08:42:06 +02:00
2018-03-13 18:06:06 +00:00
2018-03-13 18:06:06 +00:00
2018-08-16 08:42:06 +02:00
2018-02-09 13:50:17 +01:00
2018-03-27 13:05:28 +01:00
2018-10-01 19:13:55 +02:00
2018-03-02 18:39:07 +01:00
2018-09-25 15:31:15 +02:00
2018-09-25 15:50:15 +02:00
2018-10-02 19:09:12 +02:00
2018-02-09 13:52:15 +01:00
2018-02-08 09:22:03 +08:00
2018-07-24 17:35:57 +01:00
2018-07-24 17:36:12 +01:00
2018-07-02 15:41:10 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-06-18 17:04:56 +02:00
2018-08-23 18:46:23 +02:00
2018-02-15 16:54:57 +00:00
2018-03-13 18:06:06 +00:00
2018-07-24 17:35:57 +01:00
2018-03-06 10:19:05 +00:00
2018-07-02 15:41:10 +02:00
2018-05-04 08:27:53 +02:00
2018-02-09 05:05:11 +01:00
2018-07-02 15:41:10 +02:00
2018-08-31 09:53:10 +02:00
2018-09-26 08:55:54 -07:00
2018-08-31 09:53:10 +02:00
2018-08-28 18:21:38 +02:00
2018-08-16 08:42:06 +02:00
2018-05-04 08:27:53 +02:00
2018-10-02 18:47:55 +02:00
2018-08-23 18:46:25 +02:00
2018-08-23 18:46:25 +02:00
2018-10-01 19:13:55 +02:00
2018-02-09 13:52:15 +01:00
2018-02-10 10:45:14 +03:00
2018-05-20 08:48:13 +03:00
2018-07-23 14:00:03 +02:00
2018-05-04 08:27:53 +02:00
2018-07-24 17:35:23 +01:00
2018-08-23 18:46:25 +02:00
2018-06-08 13:15:32 +01:00
2018-06-06 15:44:07 -04:00
2018-09-07 16:37:47 -04:00
2018-09-07 16:37:47 -04:00
2018-09-07 16:37:47 -04:00
2018-06-06 15:44:07 -04:00
2018-06-06 15:44:07 -04:00
2018-06-06 15:44:12 -04:00
2018-09-07 16:37:47 -04:00
2018-08-16 08:42:06 +02:00
2018-06-06 15:44:12 -04:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-05-24 21:14:11 +03:00
2018-10-02 18:47:55 +02:00
2018-02-14 11:43:41 +01:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-23 13:32:50 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-08-16 08:42:06 +02:00
2018-05-04 08:27:53 +02:00