suoyuanG opened a new pull request, #17190:
URL: https://github.com/apache/nuttx/pull/17190

   ## Summary
   
   First, in some defconfigs, the `CONFIG_ARCH_INTERRUPTSTACK` macro is 
undefined. While the compiler can assume it is 0, this is not standard. The way 
`CONFIG_ARCH_INTERRUPTSTACK` is checked is also used by other calls to 
`up_check_intstack()`, so this is also a unified style.
   
   Second, in `nx_start()`, `irq_initialize()` enables the IRQ but does not 
immediately call `xxx_color_intstack()` to set the colored interrupt stack. 
`xxx_color_intstack()` is called in `up_initialize()` , resulting in incorrect 
overflow detection for interrupts occurring between `irq_initialize()` and 
`up_initialize()` .
   
   This PR addresses these two issues with two commits.
   
   ## Impact
   
   All calls to `xxx_color_intstack()` require the interrupt stack to be 
properly processed before the IRQ is enabled, so I modified a lot of arch/board 
code. However, it seems I only called `xxx_color_intstack()` before 
up_irq_enable.
   
   Some architectures have a unified `up_irqinitialize()` function, so I 
implemented `{arch}_color_intstack()` directly in the same file as 
`up_irqinitialize()`. For others, I implemented it in {arch}_check_stack.c and 
called it from `up_irqinitialize` on each board.
   
   ## Testing
   
   I ran ostest in qemu-armv7:nsh and stm32f429i-disco:nsh.
   
   qemu-armv7:nsh:
   
   ```bash
   $ qemu-system-arm -cpu cortex-a7 -nographic -machine virt -kernel build/nuttx
   
   NuttShell (NSH)
   nsh> ostest
   stdio_test: write fd=1
   stdio_test: Standard I/O Check: printf
   stdio_test: write fd=2
   stdio_test: Standard I/O Check: fprintf to stderr
   ostest_main: putenv(Variable1=BadValue3)
   ostest_main: setenv(Variable1, GoodValue1, TRUE)
   ostest_main: setenv(Variable2, BadValue1, FALSE)
   ostest_main: setenv(Variable2, GoodValue2, TRUE)
   ostest_main: setenv(Variable3, GoodValue3, FALSE)
   ostest_main: setenv(Variable3, BadValue2, FALSE)
   show_variable: Variable=Variable1 has value=GoodValue1
   show_variable: Variable=Variable2 has value=GoodValue2
   show_variable: Variable=Variable3 has value=GoodValue3
   ostest_main: Started user_main at PID=4
   
   user_main: Begin argument test
   user_main: Started with argc=5
   user_main: argv[0]="ostest"
   user_main: argv[1]="Arg1"
   user_main: argv[2]="Arg2"
   user_main: argv[3]="Arg3"
   user_main: argv[4]="Arg4"
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         1        1
   mxordblk   feec80   feec80
   uordblks     6380     6380
   fordblks   feec80   feec80
   
   user_main: getopt() test
   getopt():  Simple test
   getopt():  Invalid argument
   getopt():  Missing optional argument
   getopt_long():  Simple test
   getopt_long():  No short options
   getopt_long():  Argument for --option=argument
   getopt_long():  Invalid long option
   getopt_long():  Mixed long and short options
   getopt_long():  Invalid short option
   getopt_long():  Missing optional arguments
   getopt_long_only():  Mixed long and short options
   getopt_long_only():  Single hyphen long options
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         1        1
   mxordblk   feec80   feec80
   uordblks     6380     6380
   fordblks   feec80   feec80
   
   user_main: libc tests
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         1        1
   mxordblk   feec80   feec80
   uordblks     6380     6380
   fordblks   feec80   feec80
   show_variable: Variable=Variable1 has value=GoodValue1
   show_variable: Variable=Variable2 has value=GoodValue2
   show_variable: Variable=Variable3 has value=GoodValue3
   show_variable: Variable=Variable1 has no value
   show_variable: Variable=Variable2 has value=GoodValue2
   show_variable: Variable=Variable3 has value=GoodValue3
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         1        2
   mxordblk   feec80   feec80
   uordblks     6380     6360
   fordblks   feec80   feeca0
   show_variable: Variable=Variable1 has no value
   show_variable: Variable=Variable2 has no value
   show_variable: Variable=Variable3 has no value
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   feec80   feec80
   uordblks     6360     62e8
   fordblks   feeca0   feed18
   
   user_main: setvbuf test
   setvbuf_test: Test NO buffering
   setvbuf_test: Using NO buffering
   setvbuf_test: Test default FULL buffering
   setvbuf_test: Using default FULL buffering
   setvbuf_test: Test FULL buffering, buffer size 64
   setvbuf_test: Using FULL buffering, buffer size 64
   setvbuf_test: Test FULL buffering, pre-allocated buffer
   setvbuf_test: Using FULL buffering, pre-allocated buffer
   setvbuf_test: Test LINE buffering, buffer size 64
   setvbuf_test: Using LINE buffering, buffer size 64
   setvbuf_test: Test FULL buffering, pre-allocated buffer
   setvbuf_test: Using FULL buffering, pre-allocated buffer
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   feec80   feec80
   uordblks     62e8     62e8
   fordblks   feed18   feed18
   
   user_main: /dev/null test
   dev_null: Read 0 bytes from /dev/null
   dev_null: Wrote 1024 bytes to /dev/null
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   feec80   feec80
   uordblks     62e8     62e8
   fordblks   feed18   feed18
   
   user_main: FPU test
   Starting task FPU#1
   fpu_test: Started task FPU#1 at PID=5
   FPU#1: pass 1
   Starting task FPU#2
   fpu_test: Started task FPU#2 at PID=6
   FPU#2: pass 1
   FPU#1: pass 2
   FPU#2: pass 2
   FPU#1: pass 3
   FPU#2: pass 3
   FPU#1: pass 4
   FPU#2: pass 4
   FPU#1: pass 5
   FPU#2: pass 5
   FPU#1: pass 6
   FPU#2: pass 6
   FPU#1: pass 7
   FPU#2: pass 7
   FPU#1: pass 8
   FPU#2: pass 8
   FPU#1: pass 9
   FPU#2: pass 9
   FPU#1: pass 10
   FPU#2: pass 10
   FPU#1: pass 11
   FPU#2: pass 11
   FPU#1: pass 12
   FPU#2: pass 12
   FPU#1: pass 13
   FPU#2: pass 13
   FPU#1: pass 14
   FPU#2: pass 14
   FPU#1: pass 15
   FPU#2: pass 15
   FPU#1: pass 16
   FPU#2: pass 16
   FPU#1: Succeeded
   FPU#2: Succeeded
   fpu_test: Returning
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   feec80   fec550
   uordblks     62e8     8a18
   fordblks   feed18   fec5e8
   
   user_main: task_restart test
   
   Test task_restart()
   restart_main: setenv(VarName, VarValue, TRUE)
   restart_main: Started restart_main at PID=7
   restart_main: Started with argc=4
   restart_main: argv[0]="ostest"
   restart_main: argv[1]="This is argument 1"
   restart_main: argv[2]="Argument 2 here"
   restart_main: argv[3]="Lastly, the 3rd argument"
   restart_main: Variable=VarName has value=VarValue
   restart_main: I am still here
   restart_main: I am still here
   restart_main: Started restart_main at PID=7
   restart_main: Started with argc=4
   restart_main: argv[0]="ostest"
   restart_main: argv[1]="This is argument 1"
   restart_main: argv[2]="Argument 2 here"
   restart_main: argv[3]="Lastly, the 3rd argument"
   restart_main: Variable=VarName has value=VarValue
   restart_main: Started with argc=4
   restart_main: argv[0]="ostest"
   restart_main: argv[1]="This is argument 1"
   restart_main: argv[2]="Argument 2 here"
   restart_main: argv[3]="Lastly, the 3rd argument"
   restart_main: Variable=VarName has value=VarValue
   restart_main: Exiting
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   fec550   fec8e8
   uordblks     8a18     86b8
   fordblks   fec5e8   fec948
   
   user_main: waitpid test
   
   Test waitpid()
   waitpid_start_child: Started waitpid_main at PID=8
   waitpid_start_child: Started waitpid_main at PID=9
   waitpid_start_child: Started waitpid_main at PID=10
   waitpid_test: Waiting for PID=8 with waitpid()
   waitpid_main: PID 8 Started
   waitpid_main: PID 9 Started
   waitpid_main: PID 10 Started
   waitpid_main: PID 8 exitting with result=14
   waitpid_main: PID 9 exitting with result=14
   waitpid_main: PID 10 exitting with result=14
   waitpid_test: PID 8 waitpid succeeded with stat_loc=0e00
   waitpid_last: Waiting for PID=10 with waitpid()
   waitpid_last: PASS: PID 10 waitpid failed with ECHILD.  That may be
                 acceptable because child status is disabled on this thread.
   
   Test waitid(P_PID)
   waitpid_start_child: Started waitpid_main at PID=11
   waitpid_start_child: Started waitpid_main at PID=12
   waitpid_start_child: Started waitpid_main at PID=13
   waitpid_test: Waiting for PID=11 with waitid()
   waitpid_main: PID 11 Started
   waitpid_main: PID 12 Started
   waitpid_main: PID 13 Started
   waitpid_main: PID 11 exitting with result=14
   waitpid_test: waitid PID 11 succeeded with si_status=14
   waitpid_last: Waiting for PID=13 with waitpid()
   waitpid_main: PID 12 exitting with result=14
   waitpid_main: PID 13 exitting with result=14
   waitpid_last: PASS: PID 13 waitpid failed with ECHILD.  That may be
                 acceptable because child status is disabled on this thread.
   
   Test waitid(P_ALL)
   waitpid_start_child: Started waitpid_main at PID=14
   waitpid_start_child: Started waitpid_main at PID=15
   waitpid_start_child: Started waitpid_main at PID=21
   waitpid_test: Waiting for any child with waitid()
   waitpid_main: PID 14 Started
   waitpid_main: PID 15 Started
   waitpid_main: PID 21 Started
   waitpid_main: PID 14 exitting with result=14
   waitpid_main: PID 15 exitting with result=14
   waitpid_main: PID 21 exitting with result=14
   waitpid_test: PID 14 waitid succeeded with si_status=14
   waitpid_last: Waiting for PID=21 with waitpid()
   waitpid_last: PASS: PID 21 waitpid failed with ECHILD.  That may be
                 acceptable because child status is disabled on this thread.
   
   Test wait()
   waitpid_start_child: Started waitpid_main at PID=22
   waitpid_start_child: Started waitpid_main at PID=23
   waitpid_start_child: Started waitpid_main at PID=24
   waitpid_test: Waiting for any child with wait()
   waitpid_main: PID 22 Started
   waitpid_main: PID 23 Started
   waitpid_main: PID 24 Started
   waitpid_main: PID 22 exitting with result=14
   waitpid_main: PID 23 exitting with result=14
   waitpid_main: PID 24 exitting with result=14
   waitpid_test: PID 22 wait succeeded with stat_loc=0e00
   waitpid_last: Waiting for PID=24 with waitpid()
   waitpid_last: PASS: PID 24 waitpid failed with ECHILD.  That may be
                 acceptable because child status is disabled on this thread.
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        4
   mxordblk   fec8e8   fe8168
   uordblks     86b8     cde8
   fordblks   fec948   fe8218
   
   user_main: mutex test
   Initializing mutex
   Starting thread 1
   Starting thread 2
                   Thread1 Thread2
           Loops   32      32
           Errors  0       0
   
   Testing moved mutex
   Starting moved mutex thread 1
   Starting moved mutex thread 2
                   Thread1 Thread2
           Moved Loops     32      32
           Moved Errors    0       0
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         4        2
   mxordblk   fe8168   fecab0
   uordblks     cde8     84f0
   fordblks   fe8218   fecb10
   
   user_main: timed mutex test
   mutex_test: Initializing mutex
   mutex_test: Starting thread
   pthread:  Started
   pthread:  Waiting for lock or timeout
   mutex_test: Unlocking
   pthread:  Got the lock
   pthread:  Waiting for lock or timeout
   pthread:  Got the timeout.  Terminating
   mutex_test: PASSED
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   fecab0   fedb98
   uordblks     84f0     7408
   fordblks   fecb10   fedbf8
   
   user_main: cancel test
   cancel_test: Test 1a: Normal Cancellation
   cancel_test: Starting thread
   start_thread: Initializing mutex
   start_thread: Initializing cond
   start_thread: Starting thread
   start_thread: Yielding
   sem_waiter: Taking mutex
   sem_waiter: Starting wait for condition
   cancel_test: Canceling thread
   cancel_test: Joining
   cancel_test: waiter exited with result=0xffffffff
   cancel_test: PASS thread terminated with PTHREAD_CANCELED
   cancel_test: Test 2: Asynchronous Cancellation
   ... Skipped
   cancel_test: Test 3: Cancellation of detached thread
   cancel_test: Re-starting thread
   restart_thread: Destroying cond
   restart_thread: Destroying mutex
   restart_thread: Re-starting thread
   start_thread: Initializing mutex
   start_thread: Initializing cond
   start_thread: Starting thread
   start_thread: Yielding
   sem_waiter: Taking mutex
   sem_waiter: Starting wait for condition
   cancel_test: Canceling thread
   cancel_test: Joining
   cancel_test: PASS pthread_join failed with status=ESRCH
   cancel_test: Test 5: Non-cancelable threads
   cancel_test: Re-starting thread (non-cancelable)
   restart_thread: Destroying cond
   restart_thread: Destroying mutex
   restart_thread: Re-starting thread
   start_thread: Initializing mutex
   start_thread: Initializing cond
   start_thread: Starting thread
   start_thread: Yielding
   sem_waiter: Taking mutex
   sem_waiter: Starting wait for condition
   sem_waiter: Setting non-cancelable
   cancel_test: Canceling thread
   cancel_test: Joining
   sem_waiter: Releasing mutex
   sem_waiter: Setting cancelable
   cancel_test: waiter exited with result=0xffffffff
   cancel_test: PASS thread terminated with PTHREAD_CANCELED
   cancel_test: Test 6: Cancel message queue wait
   cancel_test: Starting thread (cancelable)
   Skipped
   cancel_test: Test 7: Cancel signal wait
   cancel_test: Starting thread (cancelable)
   Skipped
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   fedb98   fecb98
   uordblks     7408     8408
   fordblks   fedbf8   fecbf8
   
   user_main: robust test
   robust_test: Initializing mutex
   robust_test: Starting thread
   robust_waiter: Taking mutex
   robust_waiter: Exiting with mutex
   robust_test: Take the lock again
   robust_test: Make the mutex consistent again.
   robust_test: Take the lock again
   robust_test: Joining
   robust_test: waiter exited with result=0
   robust_test: Test complete with nerrors=0
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   fecb98   fecb98
   uordblks     8408     8408
   fordblks   fecbf8   fecbf8
   
   user_main: semaphore test
   sem_test: Initializing semaphore to 0
   sem_test: Starting waiter thread 1
   sem_test: Set thread 1 priority to 191
   waiter_func: Thread 1 Started
   waiter_func: Thread 1 initial semaphore value = 0
   waiter_func: Thread 1 waiting on semaphore
   sem_test: Starting waiter thread 2
   sem_test: Set thread 2 priority to 128
   waiter_func: Thread 2 Started
   waiter_func: Thread 2 initial semaphore value = -1
   waiter_func: Thread 2 waiting on semaphore
   sem_test: Starting poster thread 3
   sem_test: Set thread 3 priority to 64
   poster_func: Thread 3 started
   poster_func: Thread 3 semaphore value = -2
   poster_func: Thread 3 posting semaphore
   waiter_func: Thread 1 awakened
   waiter_func: Thread 1 new semaphore value = -1
   waiter_func: Thread 1 done
   poster_func: Thread 3 new semaphore value = -1
   poster_func: Thread 3 semaphore value = -1
   poster_func: Thread 3 posting semaphore
   waiter_func: Thread 2 awakened
   waiter_func: Thread 2 new semaphore value = 0
   waiter_func: Thread 2 done
   poster_func: Thread 3 new semaphore value = 0
   poster_func: Thread 3 done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   fecb98   feb9c8
   uordblks     8408     95d8
   fordblks   fecbf8   feba28
   
   user_main: timed semaphore test
   semtimed_test: Initializing semaphore to 0
   semtimed_test: Waiting for two second timeout
   semtimed_test: PASS: first test returned timeout
   BEFORE: (57 sec, 30626112 nsec)
   AFTER:  (59 sec, 31569104 nsec)
   semtimed_test: Starting poster thread
   semtimed_test: Set thread 1 priority to 191
   semtimed_test: Starting poster thread 3
   semtimed_test: Set thread 3 priority to 64
   semtimed_test: Waiting for two second timeout
   poster_func: Waiting for 1 second
   poster_func: Posting
   semtimed_test: PASS: sem_timedwait succeeded
   BEFORE: (59 sec, 33817472 nsec)
   AFTER:  (60 sec, 35452704 nsec)
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   feb9c8   fedb98
   uordblks     95d8     7408
   fordblks   feba28   fedbf8
   
   user_main: condition variable test
   
              Skipping, Test logic incompatible with priority inheritance
   
   user_main: pthread_exit() test
   pthread_exit_test: Started pthread_exit_main at PID=43
   pthread_exit_main 43: Starting pthread_exit_thread
   pthread_exit_main 43: Sleeping for 5 seconds
   pthread_exit_thread 44: Sleeping for 10 second
   pthread_exit_main 43: Calling pthread_exit()
   pthread_exit_thread 44: Still running...
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   fedb98   febab0
   uordblks     7408     94f0
   fordblks   fedbf8   febb10
   
   user_main: pthread_rwlock test
   pthread_rwlock: Initializing rwlock
   pthread_exit_thread 44: Exiting
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        3
   mxordblk   febab0   febab0
   uordblks     94f0     7418
   fordblks   febb10   fedbe8
   
   user_main: pthread_rwlock_cancel test
   pthread_rwlock_cancel: Starting test
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         3        2
   mxordblk   febab0   feec80
   uordblks     7418     6330
   fordblks   fedbe8   feecd0
   
   user_main: timed wait test
   thread_waiter: Initializing mutex
   timedwait_test: Initializing cond
   timedwait_test: Starting waiter
   timedwait_test: Set thread 2 priority to 177
   thread_waiter: Taking mutex
   thread_waiter: Starting 5 second wait for condition
   timedwait_test: Joining
   thread_waiter: pthread_cond_timedwait timed out
   thread_waiter: Releasing mutex
   thread_waiter: Exit with status 0x12345678
   timedwait_test: waiter exited with result=0x12345678
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   feec80   fedb98
   uordblks     6330     7418
   fordblks   feecd0   fedbe8
   
   user_main: message queue test
   mqueue_test: Starting receiver
   mqueue_test: Set receiver priority to 128
   receiver_thread: Starting
   mqueue_test: Starting sender
   mqueue_test: Set sender thread priority to 64
   mqueue_test: Waiting for sender to complete
   sender_thread: Starting
   receiver_thread: mq_receive succeeded on msg 0
   sender_thread: mq_send succeeded on msg 0
   receiver_thread: mq_receive succeeded on msg 1
   sender_thread: mq_send succeeded on msg 1
   receiver_thread: mq_receive succeeded on msg 2
   sender_thread: mq_send succeeded on msg 2
   receiver_thread: mq_receive succeeded on msg 3
   sender_thread: mq_send succeeded on msg 3
   receiver_thread: mq_receive succeeded on msg 4
   sender_thread: mq_send succeeded on msg 4
   receiver_thread: mq_receive succeeded on msg 5
   sender_thread: mq_send succeeded on msg 5
   receiver_thread: mq_receive succeeded on msg 6
   sender_thread: mq_send succeeded on msg 6
   receiver_thread: mq_receive succeeded on msg 7
   sender_thread: mq_send succeeded on msg 7
   receiver_thread: mq_receive succeeded on msg 8
   sender_thread: mq_send succeeded on msg 8
   receiver_thread: mq_receive succeeded on msg 9
   sender_thread: mq_send succeeded on msg 9
   sender_thread: returning nerrors=0
   mqueue_test: Killing receiver
   receiver_thread: mq_receive interrupted!
   receiver_thread: returning nerrors=0
   mqueue_test: Canceling receiver
   mqueue_test: receiver has already terminated
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        3
   mxordblk   fedb98   fea9e8
   uordblks     7418     a568
   fordblks   fedbe8   feaa98
   
   user_main: timed message queue test
   timedmqueue_test: Starting sender
   timedmqueue_test: Waiting for sender to complete
   sender_thread: Starting
   sender_thread: mq_timedsend succeeded on msg 0
   sender_thread: mq_timedsend succeeded on msg 1
   sender_thread: mq_timedsend succeeded on msg 2
   sender_thread: mq_timedsend succeeded on msg 3
   sender_thread: mq_timedsend succeeded on msg 4
   sender_thread: mq_timedsend succeeded on msg 5
   sender_thread: mq_timedsend succeeded on msg 6
   sender_thread: mq_timedsend succeeded on msg 7
   sender_thread: mq_timedsend succeeded on msg 8
   sender_thread: mq_timedsend 9 timed out as expected
   sender_thread: returning nerrors=0
   timedmqueue_test: Starting receiver
   timedmqueue_test: Waiting for receiver to complete
   receiver_thread: Starting
   receiver_thread: mq_timedreceive succeed on msg 0
   receiver_thread: mq_timedreceive succeed on msg 1
   receiver_thread: mq_timedreceive succeed on msg 2
   receiver_thread: mq_timedreceive succeed on msg 3
   receiver_thread: mq_timedreceive succeed on msg 4
   receiver_thread: mq_timedreceive succeed on msg 5
   receiver_thread: mq_timedreceive succeed on msg 6
   receiver_thread: mq_timedreceive succeed on msg 7
   receiver_thread: mq_timedreceive succeed on msg 8
   receiver_thread: Receive 9 timed out as expected
   receiver_thread: returning nerrors=0
   timedmqueue_test: Test complete
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         3        2
   mxordblk   fea9e8   fecb68
   uordblks     a568     8480
   fordblks   feaa98   fecb80
   
   user_main: sigprocmask test
   sigprocmask_test: SUCCESS
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   fecb68   fecb68
   uordblks     8480     8480
   fordblks   fecb80   fecb80
   
   user_main: signal handler test
   sighand_test: Initializing semaphore to 0
   sighand_test: Unmasking SIGCHLD
   sighand_test: Registering SIGCHLD handler
   sighand_test: Starting waiter task
   sighand_test: Started waiter_main pid=61
   waiter_main: Waiter started
   waiter_main: Unmasking signal 32
   waiter_main: Registering signal handler
   waiter_main: oact.sigaction=0 oact.sa_flags=0 oact.sa_mask=0000000000000000
   waiter_main: Waiting on semaphore
   sighand_test: Signaling pid=61 with signo=32 sigvalue=42
   waiter_main: sem_wait() successfully interrupted by signal
   waiter_main: done
   sighand_test: done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        2
   mxordblk   fecb68   feab60
   uordblks     8480     84b8
   fordblks   fecb80   fecb48
   
   user_main: nested signal handler test
   signest_test: Starting signal waiter task at priority 101
   waiter_main: Waiter started
   waiter_main: Setting signal mask
   waiter_main: Registering signal handler
   waiter_main: Waiting on semaphore
   signest_test: Started waiter_main pid=62
   signest_test: Starting interfering task at priority 102
   interfere_main: Waiting on semaphore
   signest_test: Started interfere_main pid=63
   signest_test: Simple case:
     Total signalled 1240  Odd=620 Even=620
     Total handled   1240  Odd=620 Even=620
     Total nested    0    Odd=0   Even=0
   signest_test: With task locking
     Total signalled 2480  Odd=1240 Even=1240
     Total handled   2480  Odd=1240 Even=1240
     Total nested    0    Odd=0   Even=0
   signest_test: With intefering thread
     Total signalled 3720  Odd=1860 Even=1860
     Total handled   3720  Odd=1860 Even=1860
     Total nested    0    Odd=0   Even=0
   signest_test: done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         2        7
   mxordblk   feab60   fe8b58
   uordblks     84b8     84f8
   fordblks   fecb48   fecb08
   
   user_main: wdog test
   wdog_test start...
   wdtest_once 0 ns
   wdtest_once 0 ns
   wdtest_once 0 ns
   wdtest_once 0 ns
   wdtest_once 1 ns
   wdtest_once 1 ns
   wdtest_once 1 ns
   wdtest_once 1 ns
   wdtest_once 10 ns
   wdtest_once 10 ns
   wdtest_once 10 ns
   wdtest_once 10 ns
   wdtest_once 100 ns
   wdtest_once 100 ns
   wdtest_once 100 ns
   wdtest_once 100 ns
   wdtest_once 1000 ns
   wdtest_once 1000 ns
   wdtest_once 1000 ns
   wdtest_once 1000 ns
   wdtest_once 10000 ns
   wdtest_once 10000 ns
   wdtest_once 10000 ns
   wdtest_once 10000 ns
   wdtest_once 100000 ns
   wdtest_once 100000 ns
   wdtest_once 100000 ns
   wdtest_once 100000 ns
   wdtest_once 1000000 ns
   wdtest_once 1000000 ns
   wdtest_once 1000000 ns
   wdtest_once 1000000 ns
   wd_start with maximum delay, cancel OK, rest 1073741821
   wdtest_recursive 1000000ns
   wd_start with maximum delay, cancel OK, rest 1073741820
   wdtest_recursive 1000000ns
   wd_start with maximum delay, cancel OK, rest 1073741820
   wdtest_recursive 1000000ns
   wd_start with maximum delay, cancel OK, rest 1073741820
   wdtest_recursive 1000000ns
   recursive wdog triggered 49 times, elapsed tick 101
   wdtest_recursive 10000000ns
   recursive wdog triggered 50 times, elapsed tick 102
   wdtest_recursive 10000000ns
   recursive wdog triggered 49 times, elapsed tick 101
   wdtest_recursive 10000000ns
   recursive wdog triggered 49 times, elapsed tick 101
   wdtest_recursive 10000000ns
   recursive wdog triggered 9 times, elapsed tick 99
   recursive wdog triggered 9 times, elapsed tick 99
   recursive wdog triggered 9 times, elapsed tick 99
   recursive wdog triggered 9 times, elapsed tick 100
   wdog_test end...
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         7        6
   mxordblk   fe8b58   febb60
   uordblks     84f8     85e0
   fordblks   fecb08   feca20
   
   user_main: POSIX timer test
   timer_test: Initializing semaphore to 0
   timer_test: Unmasking signal 32
   timer_test: Registering signal handler
   timer_test: oact.sigaction=0 oact.sa_flags=0 oact.sa_mask=0000000000000000
   timer_test: Creating timer
   timer_test: Starting timer
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=1
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=2
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=3
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=4
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=5
   timer_test: Deleting timer
   timer_test: done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         6        6
   mxordblk   febb60   febb60
   uordblks     85e0     85e0
   fordblks   feca20   feca20
   
   user_main: round-robin scheduler test
   rr_test: Set thread priority to 1
   rr_test: Set thread policy to SCHED_RR
   rr_test: Starting first get_primes_thread
            First get_primes_thread: 73
   rr_test: Starting second get_primes_thread
            Second get_primes_thread: 74
   rr_test: Waiting for threads to complete -- this should take awhile
            If RR scheduling is working, they should start and complete at
            about the same time
   get_primes_thread id=1 started, looking for primes < 10000, doing 10 run(s)
   get_primes_thread id=1 finished, found 1230 primes, last one was 9973
   get_primes_thread id=2 started, looking for primes < 10000, doing 10 run(s)
   get_primes_thread id=2 finished, found 1230 primes, last one was 9973
   rr_test: Done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         6        6
   mxordblk   febb60   febb60
   uordblks     85e0     85e0
   fordblks   feca20   feca20
   
   user_main: barrier test
   barrier_test: Initializing barrier
   barrier_test: Thread 0 created
   barrier_test: Thread 1 created
   barrier_test: Thread 2 created
   barrier_test: Thread 3 created
   barrier_test: Thread 4 created
   barrier_test: Thread 5 created
   barrier_test: Thread 6 created
   barrier_test: Thread 7 created
   barrier_func: Thread 0 started
   barrier_func: Thread 1 started
   barrier_func: Thread 2 started
   barrier_func: Thread 3 started
   barrier_func: Thread 4 started
   barrier_func: Thread 5 started
   barrier_func: Thread 6 started
   barrier_func: Thread 7 started
   barrier_func: Thread 0 calling pthread_barrier_wait()
   barrier_func: Thread 1 calling pthread_barrier_wait()
   barrier_func: Thread 2 calling pthread_barrier_wait()
   barrier_func: Thread 3 calling pthread_barrier_wait()
   barrier_func: Thread 4 calling pthread_barrier_wait()
   barrier_func: Thread 5 calling pthread_barrier_wait()
   barrier_func: Thread 6 calling pthread_barrier_wait()
   barrier_func: Thread 7 calling pthread_barrier_wait()
   barrier_func: Thread 7, back with status=PTHREAD_BARRIER_SERIAL_THREAD (I AM 
SPECIAL)
   barrier_func: Thread 0, back with status=0 (I am not special)
   barrier_func: Thread 1, back with status=0 (I am not special)
   barrier_func: Thread 2, back with status=0 (I am not special)
   barrier_func: Thread 3, back with status=0 (I am not special)
   barrier_func: Thread 4, back with status=0 (I am not special)
   barrier_func: Thread 5, back with status=0 (I am not special)
   barrier_func: Thread 6, back with status=0 (I am not special)
   barrier_func: Thread 7 done
   barrier_func: Thread 0 done
   barrier_func: Thread 1 done
   barrier_func: Thread 2 done
   barrier_test: Thread 0 completed with result=0
   barrier_test: Thread 1 completed with result=0
   barrier_test: Thread 2 completed with result=0
   barrier_func: Thread 3 done
   barrier_func: Thread 4 done
   barrier_func: Thread 5 done
   barrier_func: Thread 6 done
   barrier_test: Thread 3 completed with result=0
   barrier_test: Thread 4 completed with result=0
   barrier_test: Thread 5 completed with result=0
   barrier_test: Thread 6 completed with result=0
   barrier_test: Thread 7 completed with result=0
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         6        8
   mxordblk   febb60   fe6b38
   uordblks     85e0     74f8
   fordblks   feca20   fedb08
   
   user_main: priority inheritance test
   priority_inheritance: Started
   priority_inheritance: Starting lowpri_thread-1 (of 3) at 1
   priority_inheritance: Set lowpri_thread-1 priority to 1
   priority_inheritance: Starting lowpri_thread-2 (of 3) at 1
   priority_inheritance: Set lowpri_thread-2 priority to 1
   priority_inheritance: Starting lowpri_thread-3 (of 3) at 1
   priority_inheritance: Set lowpri_thread-3 priority to 1
   priority_inheritance: Waiting...
   lowpri_thread-1: Started
   lowpri_thread-1: initial priority: 1
   lowpri_thread-1: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   lowpri_thread-2: Started
   lowpri_thread-2: initial priority: 1
   lowpri_thread-2: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   lowpri_thread-3: Started
   lowpri_thread-3: initial priority: 1
   lowpri_thread-3: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   lowpri_thread-1: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   lowpri_thread-2: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   lowpri_thread-3: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   priority_inheritance: Starting medpri_thread at 99
   priority_inheritance: Set medpri_thread priority to 99
   priority_inheritance: Waiting...
   medpri_thread: Started ... I won't let go of the CPU!
   priority_inheritance: Starting highpri_thread-1 (of 1) at 255
   priority_inheritance: Set highpri_thread-1 priority to 255
   highpri_thread-1: Started
   priority_inheritance: Waiting for highpri_thread-1 to complete
   highpri_thread-1: Calling sem_wait()
   lowpri_thread-3: Sem count: -1, No. highpri thread: 1
   highpri_thread-1: SUCCESS midpri_thread is still running!
   highpri_thread-1: Okay... I'm done!
   priority_inheritance: Waiting for medpri_thread to complete
   medpri_thread: Okay... I'm done!
   priority_inheritance: Waiting for lowpri_thread-1 to complete
   lowpri_thread-3: SUCCESS priority before sem_post: 255
   lowpri_thread-3: SUCCESS final priority: 1
   lowpri_thread-3: Okay... I'm done!
   lowpri_thread-2: Sem count: 1, No. highpri thread: 0
   lowpri_thread-2: SUCCESS the middle priority task has already exitted!
                  g_middlestate:  3 sem count=1
                  g_highstate[0]: 3
   lowpri_thread-2: SUCCESS priority before sem_post: 1
   lowpri_thread-2: SUCCESS final priority: 1
   lowpri_thread-2: Okay... I'm done!
   lowpri_thread-1: Sem count: 2, No. highpri thread: 0
   lowpri_thread-1: SUCCESS the middle priority task has already exitted!
                  g_middlestate:  3 sem count=2
                  g_highstate[0]: 3
   lowpri_thread-1: SUCCESS priority before sem_post: 1
   lowpri_thread-1: SUCCESS final priority: 1
   lowpri_thread-1: Okay... I'm done!
   priority_inheritance: Waiting for lowpri_thread-2 to complete
   priority_inheritance: Waiting for lowpri_thread-3 to complete
   priority_inheritance: Restoration Test:
   priority_inheritance: Task0 initial priority is:200
   priority_inheritance: Task1 initial priority is:210
   priority_inheritance: Task2 initial priority is:220
   priority_inheritance: Waiting for Task-0 to complete
   priority_inheritance: Task0 Started, waiting 0 uS to take count
   priority_inheritance: Task1 Started, waiting 10000 uS to take count
   priority_inheritance: Task2 Started, waiting 20000 uS to take count
   priority_inheritance: Task0 Posted
   priority_inheritance: Task0 priority was:200 is:200
   priority_inheritance: Waiting for Task-1 to complete
   priority_inheritance: Task2 Posted
   priority_inheritance: Task2 priority was:220 is:220
   priority_inheritance: Task1 Posted
   priority_inheritance: Task1 priority was:210 is:210
   priority_inheritance: Waiting for Task-2 to complete
   priority_inheritance: PASSED Priority were correctly restored.
   priority_inheritance: Finished
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         8        6
   mxordblk   fe6b38   fe9b50
   uordblks     74f8     afc0
   fordblks   fedb08   fea040
   
   user_main: scheduler lock test
   sched_lock: Starting lowpri_thread at 97
   sched_lock: Set lowpri_thread priority to 97
   sched_lock: Starting highpri_thread at 98
   sched_lock: Set highpri_thread priority to 98
   sched_lock: Waiting...
   sched_lock: PASSED No pre-emption occurred while scheduler was locked.
   sched_lock: Starting lowpri_thread at 97
   sched_lock: Set lowpri_thread priority to 97
   sched_lock: Starting highpri_thread at 98
   sched_lock: Set highpri_thread priority to 98
   sched_lock: Waiting...
   sched_lock: PASSED No pre-emption occurred while scheduler was locked.
   sched_lock: Finished
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         6        6
   mxordblk   fe9b50   febb60
   uordblks     afc0     74f8
   fordblks   fea040   fedb08
   
   user_main: vfork() test
   vfork_test: Child 105 ran successfully
   
   Final memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      ff5000   ff5000
   ordblks         1        6
   mxordblk   feec80   feab60
   uordblks     6380     87a8
   fordblks   feec80   fec858
   user_main: Exiting
   ostest_main: Exiting with status 0
   ```
   
   stm32f429i-disco:nsh:
   
   ```bash
   
   NuttShell (NSH)
   nsh> ostest
   stdio_test: write fd=1
   stdio_test: Standard I/O Check: printf
   stdio_test: write fd=2
   ostest_main: putenv(Variable1=BadValue3)
   ostest_main: setenv(Variable1, GoodValue1, TRUE)
   ostest_main: setenv(Variable2, BadValue1, FALSE)
   ostest_main: setenv(Variable2, GoodValue2, TRUE)
   ostest_main: setenv(Variable3, GoodValue3, FALSE)
   ostest_main: setenv(Variable3, BadValue2, FALSE)
   show_variable: Variable=Variable1 has value=GoodValue1
   show_variable: Variable=Variable2 has value=GoodValue2
   show_variable: Variable=Variable3 has value=GoodValue3
   ostest_main: Started user_main at PID=3
   
   user_main: Begin argument test
   user_main: Started with argc=5
   user_main: argv[0]="ostest"
   user_main: argv[1]="Arg1"
   user_main: argv[2]="Arg2"
   user_main: argv[3]="Arg3"
   user_main: argv[4]="Arg4"
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         3        3
   mxordblk   7ffff0   7ffff0
   uordblks     41e0     41e0
   fordblks   839d20   839d20
   
   user_main: getopt() test
   getopt():  Simple test
   getopt():  Invalid argument
   getopt():  Missing optional argument
   getopt_long():  Simple test
   getopt_long():  No short options
   getopt_long():  Argument for --option=argument
   getopt_long():  Invalid long option
   getopt_long():  Mixed long and short options
   getopt_long():  Invalid short option
   getopt_long():  Missing optional arguments
   getopt_long_only():  Mixed long and short options
   getopt_long_only():  Single hyphen long options
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         3        3
   mxordblk   7ffff0   7ffff0
   uordblks     41e0     41e0
   fordblks   839d20   839d20
   
   user_main: libc tests
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         3        3
   mxordblk   7ffff0   7ffff0
   uordblks     41e0     41e0
   fordblks   839d20   839d20
   show_variable: Variable=Variable1 has value=GoodValue1
   show_variable: Variable=Variable2 has value=GoodValue2
   show_variable: Variable=Variable3 has value=GoodValue3
   show_variable: Variable=Variable1 has no value
   show_variable: Variable=Variable2 has value=GoodValue2
   show_variable: Variable=Variable3 has value=GoodValue3
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         3        4
   mxordblk   7ffff0   7ffff0
   uordblks     41e0     41c0
   fordblks   839d20   839d40
   show_variable: Variable=Variable1 has no value
   show_variable: Variable=Variable2 has no value
   show_variable: Variable=Variable3 has no value
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     41c0     4148
   fordblks   839d40   839db8
   
   user_main: setvbuf test
   setvbuf_test: Test NO buffering
   setvbuf_test: Using NO buffering
   
   setvbuf_test: Test default FULL buffering
   setvbuf_test: Using default FULL buffering
   
   setvbuf_test: Test FULL buffering, buffer size 64
   setvbuf_test: Using FULL buffering, buffer size 64
   
   setvbuf_test: Test FULL buffering, pre-allocated buffer
   setvbuf_test: Using FULL buffering, pre-allocated buffer
   
   setvbuf_test: Test LINE buffering, buffer size 64
   setvbuf_test: Using LINE buffering, buffer size 64
   
   setvbuf_test: Test FULL buffering, pre-allocated buffer
   setvbuf_test: Using FULL buffering, pre-allocated buffer
   
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     4148     4148
   fordblks   839db8   839db8
   
   user_main: /dev/null test
   dev_null: Read 0 bytes from /dev/null
   dev_null: Wrote 1024 bytes to /dev/null
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     4148     4148
   fordblks   839db8   839db8
   
   user_main: task_restart test
   
   Test task_restart()
   restart_main: setenv(VarName, VarValue, TRUE)
   restart_main: Started restart_main at PID=4
   restart_main: Started with argc=4
   restart_main: argv[0]="ostest"
   restart_main: argv[1]="This is argument 1"
   restart_main: argv[2]="Argument 2 here"
   restart_main: argv[3]="Lastly, the 3rd argument"
   restart_main: Variable=VarName has value=VarValue
   restart_main: I am still here
   restart_main: I am still here
   restart_main: Started restart_main at PID=4
   restart_main: Started with argc=4
   restart_main: argv[0]="ostest"
   restart_main: argv[1]="This is argument 1"
   restart_main: argv[2]="Argument 2 here"
   restart_main: argv[3]="Lastly, the 3rd argument"
   restart_main: Variable=VarName has value=VarValue
   restart_main: Started with argc=4
   restart_main: argv[0]="ostest"
   restart_main: argv[1]="This is argument 1"
   restart_main: argv[2]="Argument 2 here"
   restart_main: argv[3]="Lastly, the 3rd argument"
   restart_main: Variable=VarName has value=VarValue
   restart_main: Exiting
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     4148     64e8
   fordblks   839db8   837a18
   
   user_main: waitpid test
   
   Test waitpid()
   waitpid_start_child: Started waitpid_main at PID=5
   waitpid_main: PID 5 Started
   waitpid_start_child: Started waitpid_main at PID=6
   waitpid_main: PID 6 Started
   waitpid_start_child: Started waitpid_main at PID=7
   waitpid_main: PID 7 Started
   waitpid_test: Waiting for PID=5 with waitpid()
   waitpid_main: PID 5 exitting with result=14
   waitpid_test: PID 5 waitpid succeeded with stat_loc=0e00
   waitpid_last: Waiting for PID=7 with waitpid()
   waitpid_main: PID 6 exitting with result=14
   waitpid_main: PID 7 exitting with result=14
   waitpid_last: PASS: PID 7 waitpid succeeded with stat_loc=0e00
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        7
   mxordblk   7ffff0   7ffff0
   uordblks     64e8     a4f8
   fordblks   837a18   833a08
   
   user_main: mutex test
   Initializing mutex
   Starting thread 1
   Starting thread 2
   Thread1Thread2
   Loops3232
   Errors00
   
   Testing moved mutex
   Starting moved mutex thread 1
   Starting moved mutex thread 2
   Thread1Thread2
   Moved Loops3232
   Moved Errors00
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         7        4
   mxordblk   7ffff0   7ffff0
   uordblks     a4f8     4a40
   fordblks   833a08   8394c0
   
   user_main: timed mutex test
   mutex_test: Initializing mutex
   mutex_test: Starting thread
   pthread:  Started
   pthread:  Waiting for lock or timeout
   mutex_test: Unlocking
   pthread:  Got the lock
   pthread:  Waiting for lock or timeout
   pthread:  Got the timeout.  Terminating
   mutex_test: PASSED
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     4a40     4a40
   fordblks   8394c0   8394c0
   
   user_main: cancel test
   cancel_test: Test 1a: Normal Cancellation
   cancel_test: Starting thread
   start_thread: Initializing mutex
   start_thread: Initializing cond
   start_thread: Starting thread
   start_thread: Yielding
   sem_waiter: Taking mutex
   sem_waiter: Starting wait for condition
   cancel_test: Canceling thread
   cancel_test: Joining
   cancel_test: waiter exited with result=0xffffffff
   cancel_test: PASS thread terminated with PTHREAD_CANCELED
   cancel_test: Test 2: Asynchronous Cancellation
   ... Skipped
   cancel_test: Test 3: Cancellation of detached thread
   cancel_test: Re-starting thread
   restart_thread: Destroying cond
   restart_thread: Destroying mutex
   restart_thread: Re-starting thread
   start_thread: Initializing mutex
   start_thread: Initializing cond
   start_thread: Starting thread
   start_thread: Yielding
   sem_waiter: Taking mutex
   sem_waiter: Starting wait for condition
   cancel_test: Canceling thread
   cancel_test: Joining
   cancel_test: PASS pthread_join failed with status=ESRCH
   cancel_test: Test 5: Non-cancelable threads
   cancel_test: Re-starting thread (non-cancelable)
   restart_thread: Destroying cond
   restart_thread: Destroying mutex
   restart_thread: Re-starting thread
   start_thread: Initializing mutex
   start_thread: Initializing cond
   start_thread: Starting thread
   start_thread: Yielding
   sem_waiter: Taking mutex
   sem_waiter: Starting wait for condition
   sem_waiter: Setting non-cancelable
   cancel_test: Canceling thread
   cancel_test: Joining
   sem_waiter: Releasing mutex
   sem_waiter: Setting cancelable
   cancel_test: waiter exited with result=0xffffffff
   cancel_test: PASS thread terminated with PTHREAD_CANCELED
   cancel_test: Test 6: Cancel message queue wait
   cancel_test: Starting thread (cancelable)
   Skipped
   cancel_test: Test 7: Cancel signal wait
   cancel_test: Starting thread (cancelable)
   Skipped
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     4a40     6240
   fordblks   8394c0   837cc0
   
   user_main: robust test
   robust_test: Initializing mutex
   robust_test: Starting thread
   robust_waiter: Taking mutex
   robust_waiter: Exiting with mutex
   robust_test: Take the lock again
   robust_test: Make the mutex consistent again.
   robust_test: Take the lock again
   robust_test: Joining
   robust_test: waiter exited with result=0
   robust_test: Test complete with nerrors=0
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     6240     6240
   fordblks   837cc0   837cc0
   
   user_main: semaphore test
   sem_test: Initializing semaphore to 0
   sem_test: Starting waiter thread 1
   sem_test: Set thread 1 priority to 191
   waiter_func: Thread 1 Started
   sem_test: Starting waiter thread 2
   waiter_func: Thread 1 initial semaphore value = 0
   sem_test: Set thread 2 priority to 128
   waiter_func: Thread 1 waiting on semaphore
   waiter_func: Thread 2 Started
   waiter_func: Thread 2 initial semaphore value = -1
   waiter_func: Thread 2 waiting on semaphore
   sem_test: Starting poster thread 3
   sem_test: Set thread 3 priority to 64
   poster_func: Thread 3 started
   poster_func: Thread 3 semaphore value = -2
   poster_func: Thread 3 posting semaphore
   waiter_func: Thread 1 awakened
   waiter_func: Thread 1 new semaphore value = -1
   waiter_func: Thread 1 done
   poster_func: Thread 3 new semaphore value = -1
   poster_func: Thread 3 semaphore value = -1
   poster_func: Thread 3 posting semaphore
   waiter_func: Thread 2 awakened
   poster_func: Thread 3 new semaphore value = 0
   waiter_func: Thread 2 new semaphore value = 0
   poster_func: Thread 3 done
   waiter_func: Thread 2 done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        5
   mxordblk   7ffff0   7ffff0
   uordblks     6240     5300
   fordblks   837cc0   838c00
   
   user_main: timed semaphore test
   semtimed_test: Initializing semaphore to 0
   semtimed_test: Waiting for two second timeout
   semtimed_test: PASS: first test returned timeout
   BEFORE: (37 sec, 420000000 nsec)
   AFTER:  (39 sec, 420000000 nsec)
   semtimed_test: Starting poster thread
   semtimed_test: Set thread 1 priority to 191
   semtimed_test: Starting poster thread 3
   semtimed_test: Set thread 3 priority to 64
   semtimed_test: Waiting for two second timeout
   poster_func: Waiting for 1 second
   poster_func: Posting
   semtimed_test: PASS: sem_timedwait succeeded
   BEFORE: (39 sec, 420000000 nsec)
   AFTER:  (40 sec, 440000000 nsec)
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         5        4
   mxordblk   7ffff0   7ffff0
   uordblks     5300     4a40
   fordblks   838c00   8394c0
   
   user_main: condition variable test
   cond_test: Initializing mutex
   cond_test: Initializing cond
   cond_test: Starting waiter
   cond_test: Set thread 1 priority to 128
   waiter_thread: Started
   cond_test: Starting signaler
   cond_test: Set thread 2 priority to 64
   thread_signaler: Started
   thread_signaler: Terminating
   cond_test: signaler terminated, now cancel the waiter
   cond_test: WaiterSignaler
   cond_test: Loops3232
   cond_test: Errors00
   cond_test:
   cond_test: 0 times, waiter did not have to wait for data
   cond_test: 0 times, data was already available when the signaler run
   cond_test: 0 times, the waiter was in an unexpected state when the signaler 
ran
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        5
   mxordblk   7ffff0   7ffff0
   uordblks     4a40     4a40
   fordblks   8394c0   8394c0
   
   user_main: pthread_exit() test
   pthread_exit_test: Started pthread_exit_main at PID=27
   pthread_exit_main 27: Starting pthread_exit_thread
   pthread_exit_main 27: Sleeping for 5 seconds
   pthread_exit_thread 28: Sleeping for 10 second
   pthread_exit_thread 28: Still running...
   pthread_exit_main 27: Calling pthread_exit()
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         5        4
   mxordblk   7ffff0   7ffff0
   uordblks     4a40     6b00
   fordblks   8394c0   837400
   
   user_main: pthread_rwlock test
   pthread_rwlock: Initializing rwlock
   pthread_exit_thread 28: Exiting
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        5
   mxordblk   7ffff0   7ffff0
   uordblks     6b00     4a50
   fordblks   837400   8394b0
   
   user_main: pthread_rwlock_cancel test
   pthread_rwlock_cancel: Starting test
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         5        4
   mxordblk   7ffff0   7ffff0
   uordblks     4a50     4190
   fordblks   8394b0   839d70
   
   user_main: timed wait test
   thread_waiter: Initializing mutex
   timedwait_test: Initializing cond
   timedwait_test: Starting waiter
   timedwait_test: Set thread 2 priority to 177
   thread_waiter: Taking mutex
   timedwait_test: Joining
   thread_waiter: Starting 5 second wait for condition
   thread_waiter: pthread_cond_timedwait timed out
   thread_waiter: Releasing mutex
   thread_waiter: Exit with status 0x12345678
   timedwait_test: waiter exited with result=0x12345678
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     4190     4a50
   fordblks   839d70   8394b0
   
   user_main: message queue test
   mqueue_test: Starting receiver
   mqueue_test: Set receiver priority to 128
   receiver_thread: Starting
   mqueue_test: Starting sender
   mqueue_test: Set sender thread priority to 64
   mqueue_test: Waiting for sender to complete
   sender_thread: Starting
   receiver_thread: mq_receive succeeded on msg 0
   sender_thread: mq_send succeeded on msg 0
   receiver_thread: mq_receive succeeded on msg 1
   sender_thread: mq_send succeeded on msg 1
   receiver_thread: mq_receive succeeded on msg 2
   sender_thread: mq_send succeeded on msg 2
   receiver_thread: mq_receive succeeded on msg 3
   sender_thread: mq_send succeeded on msg 3
   receiver_thread: mq_receive succeeded on msg 4
   sender_thread: mq_send succeeded on msg 4
   receiver_thread: mq_receive succeeded on msg 5
   sender_thread: mq_send succeeded on msg 5
   receiver_thread: mq_receive succeeded on msg 6
   sender_thread: mq_send succeeded on msg 6
   receiver_thread: mq_receive succeeded on msg 7
   sender_thread: mq_send succeeded on msg 7
   receiver_thread: mq_receive succeeded on msg 8
   sender_thread: mq_send succeeded on msg 8
   receiver_thread: mq_receive succeeded on msg 9
   sender_thread: mq_send succeeded on msg 9
   sender_thread: returning nerrors=0
   mqueue_test: Killing receiver
   receiver_thread: mq_receive interrupted!
   receiver_thread: returning nerrors=0
   mqueue_test: Canceling receiver
   mqueue_test: receiver has already terminated
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     4a50     62b8
   fordblks   8394b0   837c48
   
   user_main: timed message queue test
   timedmqueue_test: Starting sender
   timedmqueue_test: Waiting for sender to complete
   sender_thread: Starting
   sender_thread: mq_timedsend succeeded on msg 0
   sender_thread: mq_timedsend succeeded on msg 1
   sender_thread: mq_timedsend succeeded on msg 2
   sender_thread: mq_timedsend succeeded on msg 3
   sender_thread: mq_timedsend succeeded on msg 4
   sender_thread: mq_timedsend succeeded on msg 5
   sender_thread: mq_timedsend succeeded on msg 6
   sender_thread: mq_timedsend succeeded on msg 7
   sender_thread: mq_timedsend succeeded on msg 8
   sender_thread: mq_timedsend 9 timed out as expected
   sender_thread: returning nerrors=0
   timedmqueue_test: Starting receiver
   timedmqueue_test: Waiting for receiver to complete
   receiver_thread: Starting
   receiver_thread: mq_timedreceive succeed on msg 0
   receiver_thread: mq_timedreceive succeed on msg 1
   receiver_thread: mq_timedreceive succeed on msg 2
   receiver_thread: mq_timedreceive succeed on msg 3
   receiver_thread: mq_timedreceive succeed on msg 4
   receiver_thread: mq_timedreceive succeed on msg 5
   receiver_thread: mq_timedreceive succeed on msg 6
   receiver_thread: mq_timedreceive succeed on msg 7
   receiver_thread: mq_timedreceive succeed on msg 8
   receiver_thread: Receive 9 timed out as expected
   receiver_thread: returning nerrors=0
   timedmqueue_test: Test complete
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     62b8     62b8
   fordblks   837c48   837c48
   
   user_main: sigprocmask test
   sigprocmask_test: SUCCESS
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        4
   mxordblk   7ffff0   7ffff0
   uordblks     62b8     62b8
   fordblks   837c48   837c48
   
   user_main: signal handler test
   sighand_test: Initializing semaphore to 0
   sighand_test: Starting waiter task
   sighand_test: Started waiter_main pid=44
   waiter_main: Waiter started
   waiter_main: Unmasking signal 32
   waiter_main: Registering signal handler
   waiter_main: oact.sigaction=0 oact.sa_flags=0 oact.sa_mask=0000000000000000
   waiter_main: Waiting on semaphore
   sighand_test: Signaling pid=44 with signo=32 sigvalue=42
   waiter_main: sem_wait() successfully interrupted by signal
   waiter_main: done
   sighand_test: done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         4        3
   mxordblk   7ffff0   7ffff0
   uordblks     62b8     62f0
   fordblks   837c48   837c10
   
   user_main: nested signal handler test
   signest_test: Starting signal waiter task at priority 101
   waiter_main: Waiter started
   signest_test: Started waiter_main pid=45
   waiter_main: Setting signal mask
   signest_test: Starting interfering task at priority 102
   waiter_main: Registering signal handler
   interfere_main: Waiting on semaphore
   waiter_main: Waiting on semaphore
   signest_test: Started interfere_main pid=46
   signest_test: Simple case:
     Total signalled 1240  Odd=620 Even=620
     Total handled   1240  Odd=620 Even=620
     Total nested    0    Odd=0   Even=0  
   signest_test: With task locking
     Total signalled 2480  Odd=1240 Even=1240
     Total handled   2480  Odd=1240 Even=1240
     Total nested    0    Odd=0   Even=0  
   signest_test: With intefering thread
     Total signalled 3720  Odd=1860 Even=1860
     Total handled   3720  Odd=1860 Even=1860
     Total nested    0    Odd=0   Even=0  
   signest_test: done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         3        8
   mxordblk   7ffff0   7ffff0
   uordblks     62f0     6330
   fordblks   837c10   837bd0
   
   user_main: wdog test
   wdog_test start...
   wdtest_once 0 ns
   wdtest_once 0 ns
   wdtest_once 0 ns
   wdtest_once 0 ns
   wdtest_once 1 ns
   wdtest_once 1 ns
   wdtest_once 1 ns
   wdtest_once 1 ns
   wdtest_once 10 ns
   wdtest_once 10 ns
   wdtest_once 10 ns
   wdtest_once 10 ns
   wdtest_once 100 ns
   wdtest_once 100 ns
   wdtest_once 100 ns
   wdtest_once 100 ns
   wdtest_once 1000 ns
   wdtest_once 1000 ns
   wdtest_once 1000 ns
   wdtest_once 1000 ns
   wdtest_once 10000 ns
   wdtest_once 10000 ns
   wdtest_once 10000 ns
   wdtest_once 10000 ns
   wdtest_once 100000 ns
   wdtest_once 100000 ns
   wdtest_once 100000 ns
   wdtest_once 100000 ns
   wdtest_once 1000000 ns
   wdtest_once 1000000 ns
   wdtest_once 1000000 ns
   wdtest_once 1000000 ns
   wd_start with maximum delay, cancel OK, rest 1073741822
   wdtest_recursive 1000000ns
   wd_start with maximum delay, cancel OK, rest 1073741822
   wdtest_recursive 1000000ns
   wd_start with maximum delay, cancel OK, rest 1073741822
   wdtest_recursive 1000000ns
   wd_start with maximum delay, cancel OK, rest 1073741822
   wdtest_recursive 1000000ns
   recursive wdog triggered 6 times, elapsed tick 12
   wdtest_recursive 10000000ns
   recursive wdog triggered 6 times, elapsed tick 12
   wdtest_recursive 10000000ns
   recursive wdog triggered 6 times, elapsed tick 12
   wdtest_recursive 10000000ns
   recursive wdog triggered 6 times, elapsed tick 12
   wdtest_recursive 10000000ns
   recursive wdog triggered 6 times, elapsed tick 12
   recursive wdog triggered 6 times, elapsed tick 12
   recursive wdog triggered 6 times, elapsed tick 12
   recursive wdog triggered 6 times, elapsed tick 12
   wdog_test end...
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         8        7
   mxordblk   7ffff0   7ffff0
   uordblks     6330     6570
   fordblks   837bd0   837990
   
   user_main: POSIX timer test
   timer_test: Initializing semaphore to 0
   timer_test: Unmasking signal 32
   timer_test: Registering signal handler
   timer_test: oact.sigaction=0 oact.sa_flags=0 oact.sa_mask=0000000000000000
   timer_test: Creating timer
   timer_test: Starting timer
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=1
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=2
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=3
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=4
   timer_test: Waiting on semaphore
   timer_expiration: Received signal 32
   timer_expiration: sival_int=42
   timer_expiration: si_code=2 (SI_TIMER)
   timer_expiration: ucontext=0
   timer_test: sem_wait() successfully interrupted by signal
   timer_test: g_nsigreceived=5
   timer_test: Deleting timer
   timer_test: done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         7        7
   mxordblk   7ffff0   7ffff0
   uordblks     6570     6570
   fordblks   837990   837990
   
   user_main: round-robin scheduler test
   rr_test: Set thread priority to 1
   rr_test: Set thread policy to SCHED_RR
   rr_test: Starting first get_primes_thread
            First get_primes_thread: 55
   rr_test: Starting second get_primes_thread
            Second get_primes_thread: 56
   rr_test: Waiting for threads to complete -- this should take awhile
            If RR scheduling is working, they should start and complete at
            about the same time
   get_primes_thread id=1 started, looking for primes < 10000, doing 10 run(s)
   get_primes_thread id=2 started, looking for primes < 10000, doing 10 run(s)
   get_primes_thread id=1 finished, found 1230 primes, last one was 9973
   get_primes_thread id=2 finished, found 1230 primes, last one was 9973
   rr_test: Done
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         7        7
   mxordblk   7ffff0   7ffff0
   uordblks     6570     53f0
   fordblks   837990   838b10
   
   user_main: barrier test
   barrier_test: Initializing barrier
   barrier_test: Thread 0 created
   barrier_func: Thread 0 started
   barrier_test: Thread 1 created
   barrier_func: Thread 1 started
   barrier_test: Thread 2 created
   barrier_func: Thread 2 started
   barrier_test: Thread 3 created
   barrier_func: Thread 3 started
   barrier_test: Thread 4 created
   barrier_func: Thread 4 started
   barrier_test: Thread 5 created
   barrier_func: Thread 5 started
   barrier_test: Thread 6 created
   barrier_func: Thread 6 started
   barrier_test: Thread 7 created
   barrier_func: Thread 7 started
   barrier_func: Thread 0 calling pthread_barrier_wait()
   barrier_func: Thread 1 calling pthread_barrier_wait()
   barrier_func: Thread 2 calling pthread_barrier_wait()
   barrier_func: Thread 3 calling pthread_barrier_wait()
   barrier_func: Thread 4 calling pthread_barrier_wait()
   barrier_func: Thread 5 calling pthread_barrier_wait()
   barrier_func: Thread 6 calling pthread_barrier_wait()
   barrier_func: Thread 7 calling pthread_barrier_wait()
   barrier_func: Thread 7, back with status=PTHREAD_BARRIER_SERIAL_THREAD (I AM 
SPECIAL)
   barrier_func: Thread 0, back with status=0 (I am not special)
   barrier_func: Thread 1, back with status=0 (I am not special)
   barrier_func: Thread 2, back with status=0 (I am not special)
   barrier_func: Thread 3, back with status=0 (I am not special)
   barrier_func: Thread 4, back with status=0 (I am not special)
   barrier_func: Thread 5, back with status=0 (I am not special)
   barrier_func: Thread 6, back with status=0 (I am not special)
   barrier_func: Thread 7 done
   barrier_func: Thread 0 done
   barrier_func: Thread 1 done
   barrier_test: Thread 0 completed with result=0
   barrier_test: Thread 1 completed with result=0
   barrier_func: Thread 2 done
   barrier_func: Thread 3 done
   barrier_test: Thread 2 completed with result=0
   barrier_test: Thread 3 completed with result=0
   barrier_func: Thread 4 done
   barrier_func: Thread 5 done
   barrier_test: Thread 4 completed with result=0
   barrier_test: Thread 5 completed with result=0
   barrier_func: Thread 6 done
   barrier_test: Thread 6 completed with result=0
   barrier_test: Thread 7 completed with result=0
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         7        9
   mxordblk   7ffff0   7ffff0
   uordblks     53f0     53f0
   fordblks   838b10   838b10
   
   user_main: scheduler lock test
   sched_lock: Starting lowpri_thread at 97
   sched_lock: Set lowpri_thread priority to 97
   sched_lock: Starting highpri_thread at 98
   sched_lock: Set highpri_thread priority to 98
   sched_lock: Waiting...
   sched_lock: PASSED No pre-emption occurred while scheduler was locked.
   sched_lock: Starting lowpri_thread at 97
   sched_lock: Set lowpri_thread priority to 97
   sched_lock: Starting highpri_thread at 98
   sched_lock: Set highpri_thread priority to 98
   sched_lock: Waiting...
   sched_lock: PASSED No pre-emption occurred while scheduler was locked.
   sched_lock: Finished
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         9        8
   mxordblk   7ffff0   7ffff0
   uordblks     53f0     4b30
   fordblks   838b10   8393d0
   
   user_main: vfork() test
   vfork_test: Child 73 ran successfully
   
   Final memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena      83df00   83df00
   ordblks         3        7
   mxordblk   7ffff0   7ffff0
   uordblks     41e0     6278
   fordblks   839d20   837c88
   user_main: Exiting
   ostest_main: Exiting with status 0
   stdio_test: Standard I/O Check: fprintf to stderr
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to