summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-client-bandwidth.c5
-rw-r--r--test/test-client-latency.c1
-rw-r--r--test/test-server.c6
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));
}