X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc_test.c;h=b110946ef0aba692898a8a65a7aa2784cbc48e9e;hb=647e8b59350b817014d29f4b204a0a201824bf1b;hp=0553881b78a0cbaee898ed67a544309d34da3681;hpb=6f173abf128765ef8e4f71b0cd1619e2d2691cfb;p=bertos.git diff --git a/bertos/kern/proc_test.c b/bertos/kern/proc_test.c index 0553881b..b110946e 100644 --- a/bertos/kern/proc_test.c +++ b/bertos/kern/proc_test.c @@ -34,6 +34,16 @@ * * \version $Id$ * \author Daniele Basile + * + * $test$: cp bertos/cfg/cfg_proc.h $cfgdir/ + * $test$: echo "#undef CONFIG_KERN" >> $cfgdir/cfg_proc.h + * $test$: echo "#define CONFIG_KERN 1" >> $cfgdir/cfg_proc.h + * $test$: cp bertos/cfg/cfg_monitor.h $cfgdir/ + * $test$: echo "#undef CONFIG_KERN_MONITOR" >> $cfgdir/cfg_monitor.h + * $test$: echo "#define CONFIG_KERN_MONITOR 1" >> $cfgdir/cfg_monitor.h + * $test$: cp bertos/cfg/cfg_signal.h $cfgdir/ + * $test$: echo "#undef CONFIG_KERN_SIGNALS" >> $cfgdir/cfg_signal.h + * $test$: echo "#define CONFIG_KERN_SIGNALS 1" >> $cfgdir/cfg_signal.h */ #include @@ -45,8 +55,6 @@ // Global settings for the test. -#define MAX_GLOBAL_COUNT 1024 -#define TEST_TIME_OUT_MS 6000 #define DELAY 5 // Settings for the test process. @@ -90,8 +98,6 @@ unsigned int t8_count = 0; */ #define PROC_TEST(num) static void proc_test##num(void) \ { \ - unsigned int local_count = 0; \ - \ for (int i = 0; i < INC_PROC_T##num; ++i) \ { \ t##num##_count++; \ @@ -100,7 +106,7 @@ unsigned int t8_count = 0; } \ } \ -#define PROC_TEST_STACK(num) static cpu_stack_t proc_test##num##_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]; +#define PROC_TEST_STACK(num) static cpu_stack_t proc_test##num##_stack[700 / sizeof(cpu_stack_t)]; #define PROC_TEST_INIT(num) proc_new(proc_test##num, NULL, sizeof(proc_test##num##_stack), proc_test##num##_stack); // Define process