summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-08-29 18:44:23 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2014-08-29 18:44:23 +0200
commit268b867c719717f12d5e57e6ca93e6f6cfd04a35 (patch)
tree25294d729922127c84b78db36a00a0f0bcad915f /test
parentecf1e0a95fff6b4bcf23c537824faf4768f8f65f (diff)
downloadkiro-268b867c719717f12d5e57e6ca93e6f6cfd04a35.tar.gz
kiro-268b867c719717f12d5e57e6ca93e6f6cfd04a35.tar.bz2
kiro-268b867c719717f12d5e57e6ca93e6f6cfd04a35.tar.xz
kiro-268b867c719717f12d5e57e6ca93e6f6cfd04a35.zip
Fixed a problem in KIRO Client "sync" function
KIRO Client was ignoring broken connections and bad RDMA access keys Made test-client application check kiro_client_sync return value
Diffstat (limited to 'test')
-rw-r--r--test/test-client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test-client.c b/test/test-client.c
index 45ce722..a7bbc16 100644
--- a/test/test-client.c
+++ b/test/test-client.c
@@ -80,7 +80,10 @@ main ( int argc, char *argv[] )
for (SDL_Event event; SDL_PollEvent (&event);)
if (event.type == SDL_QUIT) cont = 0;
- kiro_client_sync (client);
+ if (kiro_client_sync (client) < 0) {
+ g_warning ("Unable to get data from server. Stopping.");
+ break;
+ }
SDL_Delay (10);
render (data_sf);
}