Remove c files inclusions: use libunittest instead.
[bertos.git] / bertos / kern / proc_test.c
index 52a7fe851e2f7dd61cb0a24a12455329fa8b1ac9..dafd7cb92aa790e645aab58a376eeeafd0d4e214 100644 (file)
@@ -38,6 +38,8 @@
 
 #include <kern/proc.h>
 #include <kern/irq.h>
+#include <kern/monitor.h>
+
 #include <drv/timer.h>
 #include <cfg/test.h>
 
@@ -66,8 +68,8 @@ static void proc_test2(void)
        }
 }
 
-static cpustack_t proc_test1_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpustack_t)];
-static cpustack_t proc_test2_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpustack_t)];
+static cpu_stack_t proc_test1_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)];
+static cpu_stack_t proc_test2_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)];
 
 
 /**
@@ -83,12 +85,12 @@ int proc_testRun(void)
        {
                kputs("> main\n");
                timer_delay(93);
+               monitor_report();
                proc_yield();
        }
        return 0;
 }
 
-#if UNIT_TEST
 
 int proc_testSetup(void)
 {
@@ -109,24 +111,4 @@ int proc_testTearDown(void)
        return 0;
 }
 
-#include <drv/kdebug.c>
-#include <drv/timer.c>
-#include <kern/idle.c>
-#include <kern/monitor.c>
-#include <kern/signal.c>
-#if CONFIG_KERN_PREEMPT
-       #include <kern/preempt.c>
-       #include <kern/irq.c>
-#else
-       #include <kern/coop.c>
-       // FIXME: we need to link with the switch asm code too!
-#endif
-#include <kern/proc.c>
-#include <mware/formatwr.c>
-#include <mware/hex.c>
-#include <mware/event.c>
-#include <os/hptime.c>
-
 TEST_MAIN(proc);
-
-#endif // _TEST