From 96d76125b434bc7bba89d94b6d2c0263e6eff84e Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 1 Aug 2023 07:56:15 +0200 Subject: [PATCH 1/2] tests/pkg/lora-serialization: Remove clang condition It seems like the differences between float handling in clang vs gnu are resolved. This condition now makes tests fail so it should be removed... --- tests/pkg/lora-serialization/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pkg/lora-serialization/main.c b/tests/pkg/lora-serialization/main.c index f0cac21bc830..7986df8a0dd9 100644 --- a/tests/pkg/lora-serialization/main.c +++ b/tests/pkg/lora-serialization/main.c @@ -23,7 +23,7 @@ #include #include "lora_serialization.h" -#if defined(BOARD_NATIVE) && !defined(__clang__) +#if defined(BOARD_NATIVE) #define TEST_01_EXPECTED { 0x1f, 0x4c, 0x0e, 0x27 } #define TEST_02_EXPECTED { 0x65, 0xa6, 0xfa, 0xfd, \ 0x6a, 0x24, 0x04, 0x09, \ From 63f89b053c231d0a6a79816221edafe2b2ba387a Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 1 Aug 2023 08:00:27 +0200 Subject: [PATCH 2/2] tests/pkg/cayenne-lpp: Remove clang condition As in the previous commit, the floats are handled the same clang or not. --- tests/pkg/cayenne-lpp/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/pkg/cayenne-lpp/main.c b/tests/pkg/cayenne-lpp/main.c index cb5c246928bb..e0f92a9c1eca 100644 --- a/tests/pkg/cayenne-lpp/main.c +++ b/tests/pkg/cayenne-lpp/main.c @@ -24,9 +24,7 @@ #include "cayenne_lpp.h" #define TEST_BUFFER1 { 0x03, 0x67, 0x01, 0x10, 0x05, 0x67, 0x00, 0xff } -#if defined(BOARD_NATIVE) && !defined(__clang__) /* clang uses same floating - * point handling as GCC - * with cross compiling */ +#if defined(BOARD_NATIVE) #define TEST_BUFFER2 { 0x01, 0x67, 0xFF, 0xD8, \ 0x06, 0x71, 0x04, 0xD1, 0xFB, 0x2F, 0x00, 0x00 } #else