[X2Go-Commits] [libx2goclient] 32/44: src/test/sshtest.c: sleep for 30 seconds after connection has been established, then tear everything down.
git-admin at x2go.org
git-admin at x2go.org
Fri Sep 18 01:55:39 CEST 2020
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository libx2goclient.
commit 8ea258e2414bc30cec10096b829671d316746c59
Author: Mihai Moldovan <ionic at ionic.de>
Date: Mon Sep 14 06:23:37 2020 +0200
src/test/sshtest.c: sleep for 30 seconds after connection has been established, then tear everything down.
---
src/test/sshtest.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/test/sshtest.c b/src/test/sshtest.c
index 07e9ff6..f8fc78a 100644
--- a/src/test/sshtest.c
+++ b/src/test/sshtest.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
+#include <unistd.h>
#include <libintl.h>
@@ -112,6 +113,9 @@ int main (const int argc, const char * const * const argv) {
conn_ret = x2goclient_network_ssh_connect (net_ssh, NULL);
g_printf ("Connection status: %s.\n", (conn_ret) ? "true" : "false");
+ /* Let ssh connection live for a few seconds, give or take. */
+ sleep (30);
+
g_clear_object (&net_ssh);
return (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