diff --git a/testing/ostest/Kconfig b/testing/ostest/Kconfig index d007a296b..d6a50d369 100644 --- a/testing/ostest/Kconfig +++ b/testing/ostest/Kconfig @@ -88,6 +88,7 @@ if !TESTING_OSTEST_FPUTESTDISABLE config TESTING_OSTEST_FPUSIZE int "Size of floating point register save area" + default 0 config TESTING_OSTEST_FPULOOPS int "Number of FPU test loops" diff --git a/testing/ostest/fpu.c b/testing/ostest/fpu.c index b7d1946ff..f9cf5dbdf 100644 --- a/testing/ostest/fpu.c +++ b/testing/ostest/fpu.c @@ -43,11 +43,13 @@ #undef HAVE_FPU #ifdef CONFIG_ARCH_FPU # if defined(CONFIG_TESTING_OSTEST_FPUSIZE) && \ + (CONFIG_TESTING_OSTEST_FPUSIZE != 0) && \ defined(CONFIG_SCHED_WAITPID) && \ defined(CONFIG_BUILD_FLAT) # define HAVE_FPU 1 # else -# ifndef CONFIG_TESTING_OSTEST_FPUSIZE +# if defined(CONFIG_TESTING_OSTEST_FPUSIZE) && \ + (CONFIG_TESTING_OSTEST_FPUSIZE == 0) # warning "FPU test not built; CONFIG_TESTING_OSTEST_FPUSIZE not defined" # endif # ifndef CONFIG_SCHED_WAITPID