This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new ab2e45a86 ostest/fpu_test: enable for FLAT mode only
ab2e45a86 is described below

commit ab2e45a86ce3f6585cf40c920b4515b6b0df3625
Author: Yanfeng Liu <[email protected]>
AuthorDate: Sat Aug 3 10:37:48 2024 +0800

    ostest/fpu_test: enable for FLAT mode only
    
    As per the `HAVE_FPU` in `fpu.c`, fpu_test is only available for
    FLAT build. So user_main should enable fpu_test for FLAT build also,
    otherwise ostest will fail for PROTECTED build.
    
    Signed-off-by: Yanfeng Liu <[email protected]>
---
 testing/ostest/ostest_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/ostest/ostest_main.c b/testing/ostest/ostest_main.c
index af063fc08..27d860cef 100644
--- a/testing/ostest/ostest_main.c
+++ b/testing/ostest/ostest_main.c
@@ -346,7 +346,7 @@ static int user_main(int argc, char *argv[])
 #endif
 
 #if defined(CONFIG_ARCH_FPU) && !defined(CONFIG_TESTING_OSTEST_FPUTESTDISABLE) 
&& \
-    !defined(CONFIG_BUILD_KERNEL)
+    defined(CONFIG_BUILD_FLAT)
       /* Check that the FPU is properly supported during context switching */
 
       printf("\nuser_main: FPU test\n");

Reply via email to