[X2Go-Commits] [libx2goclient] 109/132: src/test/sshtest.c: sprinkle network stub class in.
git-admin at x2go.org
git-admin at x2go.org
Fri Dec 3 15:26:35 CET 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository libx2goclient.
commit 7c1bb6e9641546df33a8d6ca0d7c9967ef9ac84f
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Sep 30 19:34:18 2021 +0200
src/test/sshtest.c: sprinkle network stub class in.
---
src/test/sshtest.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/test/sshtest.c b/src/test/sshtest.c
index 93c9444..7e741aa 100644
--- a/src/test/sshtest.c
+++ b/src/test/sshtest.c
@@ -41,6 +41,7 @@
#include "x2goclient.h"
#include "x2goclient-network-ssh.h"
+#include "x2goclient-network-stub.h"
#define _(String) gettext (String)
@@ -228,13 +229,17 @@ static _Bool test_x2goclient_network_ssh_connect_after_connect (X2GoClientNetwor
static _Bool test_x2goclient_network_ssh_connect (X2GoClientNetworkSSH *net_ssh, gboolean * const conn_ret, const _Bool use_super) {
_Bool ret = (!(!(conn_ret)));
+ X2GoClientNetworkStub *net_stub = x2goclient_network_stub_new ();
+
if (ret) {
/* Actually connect. */
g_printf ("Trying to connect...\n");
if (use_super) {
+ (void) x2goclient_network_connect ((X2GoClientNetwork*) (net_stub), NULL);
(*conn_ret) = x2goclient_network_connect ((X2GoClientNetwork*) (net_ssh), NULL);
}
else {
+ (void) x2goclient_network_stub_connect (net_stub, NULL);
(*conn_ret) = x2goclient_network_ssh_connect (net_ssh, NULL);
}
g_printf ("Connection status: %s.\n", x2goclient_bool_to_str (*conn_ret));
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git
More information about the x2go-commits
mailing list