diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2014-11-21 17:54:13 +0100 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2014-11-21 17:54:13 +0100 |
commit | 5235e634860744f0b1251b0e50e89446f93381c2 (patch) | |
tree | b2ead7723f9d7fe30ca5fc000b7f37dd150d0561 /test | |
parent | f98bd3a5d58c59d950aa7318e9b708c42d51687f (diff) | |
download | kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.gz kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.bz2 kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.xz kiro-5235e634860744f0b1251b0e50e89446f93381c2.zip |
Fix #1: Added missing documentation to TRB, Client and Server header
Fixed build warnings
Fixed a bug in kiro-test-bandwidth
Diffstat (limited to 'test')
-rw-r--r-- | test/test-client-bandwidth.c | 5 | ||||
-rw-r--r-- | test/test-client-latency.c | 1 | ||||
-rw-r--r-- | test/test-server.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/test-client-bandwidth.c b/test/test-client-bandwidth.c index 8cf87d5..287584a 100644 --- a/test/test-client-bandwidth.c +++ b/test/test-client-bandwidth.c @@ -28,7 +28,8 @@ main ( int argc, char *argv[] ) GTimer *timer = g_timer_new (); -while (1) { +while (1) { + g_timer_reset (timer); int i = 0; while(i < 500) { kiro_client_sync (client); @@ -41,7 +42,7 @@ while (1) { } g_timer_stop (timer); kiro_client_free (client); - kiro_trb_free (client); + kiro_trb_free (trb); return 0; } diff --git a/test/test-client-latency.c b/test/test-client-latency.c index 47260b4..676dfe4 100644 --- a/test/test-client-latency.c +++ b/test/test-client-latency.c @@ -35,7 +35,6 @@ while (1) { } double elapsed = g_timer_elapsed (timer, NULL); - size_t size = kiro_client_get_memory_size (client); printf ("Average Latency: %fus\n", (elapsed/50000.)*1000*1000); } g_timer_stop (timer); diff --git a/test/test-server.c b/test/test-server.c index dc277d5..91a3db5 100644 --- a/test/test-server.c +++ b/test/test-server.c @@ -99,8 +99,8 @@ static const guint DIGIT_HEIGHT = 5; static void print_number (gchar *buffer, guint number, guint x, guint y, guint width) { - for (int i = 0; i < DIGIT_WIDTH; i++) { - for (int j = 0; j < DIGIT_HEIGHT; j++) { + for (guint i = 0; i < DIGIT_WIDTH; i++) { + for (guint j = 0; j < DIGIT_HEIGHT; j++) { char val = (char) g_digits[number][j * DIGIT_WIDTH + i]; if (val != 0x00) { @@ -131,7 +131,7 @@ print_current_frame (gchar *buffer, guint number, guint width, guint height, GRa //for every row again. char default_line[width]; - for (int p = 0; p < width; p++) { + for (guint p = 0; p < width; p++) { default_line[p] = (char) ((p * 256) / (width)); } |