summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ddekit_test/Makefile2
-rw-r--r--ddekit_test/main.c9
2 files changed, 8 insertions, 3 deletions
diff --git a/ddekit_test/Makefile b/ddekit_test/Makefile
index d2960560..ea686d15 100644
--- a/ddekit_test/Makefile
+++ b/ddekit_test/Makefile
@@ -28,4 +28,4 @@ OBJS = $(SRCS:.c=.o) $(MIGSTUBS)
include ../Makeconf
-CFLAGS = -I../libddekit/include
+CFLAGS = -I../libddekit/include -g
diff --git a/ddekit_test/main.c b/ddekit_test/main.c
index c3ca067f..221e5019 100644
--- a/ddekit_test/main.c
+++ b/ddekit_test/main.c
@@ -1,3 +1,5 @@
+#include <mach.h>
+
#include "dde.h"
#include "ddekit/thread.h"
#include "ddekit/printf.h"
@@ -5,6 +7,7 @@
#define VERBOSE 1
+boolean_t using_std = 1;
/****************
** Timer test **
@@ -67,6 +70,8 @@ static void timer_test(void)
ddekit_printf("added timer: %d\n", twenty_timer);
i = ddekit_add_timer(timer_func, (void *)30, jiffies + 30*HZ);
ddekit_printf("added timer: %d\n", i);
+
+ ddekit_thread_msleep (10 * 1000);
}
/********************************
@@ -255,8 +260,8 @@ int main(int argc, char **argv)
ddekit_init();
- if (1) memory_test();
- if (0) timer_test();
+ if (0) memory_test();
+ if (1) timer_test();
return 0;
}