GUACAMOLE-377: Merge update unit tests for new prototype of guac_protocol_send_sync().
This commit is contained in:
commit
4cf1bfae0e
@ -54,7 +54,7 @@ static void write_instructions(int fd) {
|
|||||||
|
|
||||||
/* Write instructions */
|
/* Write instructions */
|
||||||
guac_protocol_send_name(socket, "a" UTF8_4 "b" UTF8_4 "c");
|
guac_protocol_send_name(socket, "a" UTF8_4 "b" UTF8_4 "c");
|
||||||
guac_protocol_send_sync(socket, 12345);
|
guac_protocol_send_sync(socket, 12345, 1);
|
||||||
guac_socket_flush(socket);
|
guac_socket_flush(socket);
|
||||||
|
|
||||||
/* Close and free socket */
|
/* Close and free socket */
|
||||||
@ -76,7 +76,7 @@ static void read_expected_instructions(int fd) {
|
|||||||
|
|
||||||
char expected[] =
|
char expected[] =
|
||||||
"4.name,11.a" UTF8_4 "b" UTF8_4 "c;"
|
"4.name,11.a" UTF8_4 "b" UTF8_4 "c;"
|
||||||
"4.sync,5.12345;";
|
"4.sync,5.12345,1.1;";
|
||||||
|
|
||||||
int numread;
|
int numread;
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
|
@ -65,7 +65,7 @@ static void write_instructions(int fd) {
|
|||||||
|
|
||||||
/* Write instructions */
|
/* Write instructions */
|
||||||
guac_protocol_send_name(nested_socket, "a" UTF8_4 "b" UTF8_4 "c");
|
guac_protocol_send_name(nested_socket, "a" UTF8_4 "b" UTF8_4 "c");
|
||||||
guac_protocol_send_sync(nested_socket, 12345);
|
guac_protocol_send_sync(nested_socket, 12345, 1);
|
||||||
|
|
||||||
/* Close and free sockets */
|
/* Close and free sockets */
|
||||||
guac_socket_free(nested_socket);
|
guac_socket_free(nested_socket);
|
||||||
@ -86,9 +86,9 @@ static void write_instructions(int fd) {
|
|||||||
static void read_expected_instructions(int fd) {
|
static void read_expected_instructions(int fd) {
|
||||||
|
|
||||||
char expected[] =
|
char expected[] =
|
||||||
"4.nest,3.123,37."
|
"4.nest,3.123,41."
|
||||||
"4.name,11.a" UTF8_4 "b" UTF8_4 "c;"
|
"4.name,11.a" UTF8_4 "b" UTF8_4 "c;"
|
||||||
"4.sync,5.12345;"
|
"4.sync,5.12345,1.1;"
|
||||||
";";
|
";";
|
||||||
|
|
||||||
int numread;
|
int numread;
|
||||||
|
Loading…
Reference in New Issue
Block a user