nuttx-apps icon indicating copy to clipboard operation
nuttx-apps copied to clipboard

[help] confirming ostest output in KERNEL mode

Open yf13 opened this issue 1 year ago • 2 comments

Thanks for making ostest loadable in KERNEL mode NuttX!

I run it with kernel build on CanMV230 and got the following dumps at the end:

Final memory usage:                                                             
VARIABLE  BEFORE   AFTER                                                        
======== ======== ========                                                      
arena       80ff8    80ff8                                                      
ordblks         2        4                                                      
mxordblk    7cff0    787f0                                                      
uordblks     2658     3598                                                      
fordblks    7e9a0    7da60                                                      
user_main: Exiting                                                              
ostest_main: Exiting with status -1 

Is this expected? I understand that test cases might be different from FLAT build, but not sure on the exit code.

yf13 avatar Dec 30 '23 06:12 yf13

@fxysunshine could you take a look?

xiaoxiang781216 avatar Dec 30 '23 09:12 xiaoxiang781216

On rv-virt/knsh64. the exit code is also -1:

sched_lock: Finished

End of test memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena       80ff8    80ff8
ordblks        10        4
mxordblk    6c7f0    787f0
uordblks     65f8     3598
fordblks    7aa00    7da60

user_main: vfork() test DISABLED (CONFIG_BUILD_KERNEL)

Final memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena       80ff8    80ff8
ordblks         2        4
mxordblk    7cff0    787f0
uordblks     2658     3598
fordblks    7e9a0    7da60
user_main: Exiting
ostest_main: Exiting with status -1
nsh>

yf13 avatar Jan 06 '24 03:01 yf13