Fix bertos copy command to work also on Mac OS, and exit when there is error. Use...
[bertos.git] / bertos / kern / proc_test.c
index e0030b7f57598411d0173e33540461dfdcef802e..e06e984f660aef3581416d1c60758e47d75fefe9 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,13 @@ int proc_testRun(void)
        {
                kputs("> main\n");
                timer_delay(93);
+               monitor_report();
                proc_yield();
        }
        return 0;
 }
 
-#if (ARCH & ARCH_UNITTEST)
+#if UNIT_TEST
 
 int proc_testSetup(void)
 {