tests: lib: cbprintf_package: Hande riscv32 case Long double test fails on riscv32 for unknown reason. Previously, testcase.yaml was excluding whole test. Removed that and added skipping in the code so that rest of the suite is executed. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
diff --git a/tests/lib/cbprintf_package/src/main.c b/tests/lib/cbprintf_package/src/main.c index 0a2d1e0..97a8117 100644 --- a/tests/lib/cbprintf_package/src/main.c +++ b/tests/lib/cbprintf_package/src/main.c
@@ -145,7 +145,8 @@ TEST_PACKAGING(0, "test double %x %f %x", 0xb1b2b3b4, d, 0xe4e3e2e1); TEST_PACKAGING(0, "test %f %a", (double)f, d); -#if CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE +#if CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE && !(defined(CONFIG_RISCV) && !defined(CONFIG_64BIT)) + /* Excluding riscv32 which does not handle long double correctly. */ long double ld = 1.2333; TEST_PACKAGING(0, "test %Lf", ld);
diff --git a/tests/lib/cbprintf_package/testcase.yaml b/tests/lib/cbprintf_package/testcase.yaml index a40edab..ad3c8af 100644 --- a/tests/lib/cbprintf_package/testcase.yaml +++ b/tests/lib/cbprintf_package/testcase.yaml
@@ -32,7 +32,6 @@ libraries.cbprintf_package_long_double: filter: CONFIG_CPU_HAS_FPU - platform_exclude: qemu_riscv32 qemu_riscv32_smp extra_configs: - CONFIG_CBPRINTF_FP_SUPPORT=y - CONFIG_CBPRINTF_COMPLETE=y @@ -41,7 +40,6 @@ libraries.cbprintf_package_long_double_align_offset: filter: CONFIG_CPU_HAS_FPU - platform_exclude: qemu_riscv32 qemu_riscv32_smp extra_configs: - CONFIG_CBPRINTF_FP_SUPPORT=y - CONFIG_CBPRINTF_COMPLETE=y @@ -84,7 +82,6 @@ libraries.cbprintf_package_long_double_cpp: filter: CONFIG_CPU_HAS_FPU - platform_exclude: qemu_riscv32 extra_configs: - CONFIG_CPLUSPLUS=y - CONFIG_CBPRINTF_FP_SUPPORT=y @@ -94,7 +91,6 @@ libraries.cbprintf_package_long_double_align_offset_cpp: filter: CONFIG_CPU_HAS_FPU - platform_exclude: qemu_riscv32 extra_configs: - CONFIG_CPLUSPLUS=y - CONFIG_CBPRINTF_FP_SUPPORT=y