Refactor switch context ASM files to comply to Wizard.
[bertos.git] / bertos / kern / proc_test.c
index 0553881b78a0cbaee898ed67a544309d34da3681..4bad9a24d1eef14cefbac249b01ad7a21a5a44ea 100644 (file)
  *
  * \version $Id$
  * \author Daniele Basile <asterix@develer.com>
+ *
+ * $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 <kern/proc.h>
@@ -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++; \