From 117ff2f8620cf0773e272d0e5655585f419891a9 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 15 Oct 2019 09:43:24 +0200 Subject: [PATCH] unittests: remove board blacklist, fix doc for MCU architectures --- tests/unittests/Makefile | 17 ----------------- tests/unittests/tests-pkt/Makefile.include | 4 ++++ tests/unittests/tests-rtc/Makefile.include | 7 +++++++ 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/tests/unittests/Makefile b/tests/unittests/Makefile index dc48174347..469063a147 100644 --- a/tests/unittests/Makefile +++ b/tests/unittests/Makefile @@ -1,23 +1,6 @@ DEVELHELP ?= 0 include ../Makefile.tests_common -# Issue with integer width -# There are present for a long time but hidden by being not compiled -BOARD_BLACKLIST += arduino-duemilanove -BOARD_BLACKLIST += arduino-leonardo -BOARD_BLACKLIST += arduino-mega2560 -BOARD_BLACKLIST += arduino-nano -BOARD_BLACKLIST += arduino-uno -BOARD_BLACKLIST += chronos -BOARD_BLACKLIST += mega-xplained -BOARD_BLACKLIST += msb-430 -BOARD_BLACKLIST += msb-430h -BOARD_BLACKLIST += telosb -BOARD_BLACKLIST += waspmote-pro -BOARD_BLACKLIST += wsn430-v1_3b -BOARD_BLACKLIST += wsn430-v1_4 -BOARD_BLACKLIST += z1 - BOARD_INSUFFICIENT_MEMORY := airfy-beacon \ arduino-duemilanove \ arduino-leonardo \ diff --git a/tests/unittests/tests-pkt/Makefile.include b/tests/unittests/tests-pkt/Makefile.include index 0577e7d9a3..3c18d4e3f7 100644 --- a/tests/unittests/tests-pkt/Makefile.include +++ b/tests/unittests/tests-pkt/Makefile.include @@ -1 +1,5 @@ USEMODULE += gnrc_ipv6 + +# Test assumes 32-bit width for `size_t` which is only the case on our 32-bit +# platforms +FEATURES_REQUIRED += arch_32bit diff --git a/tests/unittests/tests-rtc/Makefile.include b/tests/unittests/tests-rtc/Makefile.include index 050dcfda2b..02714200b8 100644 --- a/tests/unittests/tests-rtc/Makefile.include +++ b/tests/unittests/tests-rtc/Makefile.include @@ -1,3 +1,10 @@ CFLAGS += -DRTC_NORMALIZE_COMPAT=1 USEMODULE += periph_rtc_common + +# MSP-430's libc does not provide `mktime()` used by this test +FEATURES_BLACKLIST += arch_msp430 + +# AVR/ATmega uses `int8_t` for `struct tm` which leads to integer overflows +# in these tests +FEATURES_BLACKLIST += arch_avr8