Remove `#ifdef UNITTEST` from MbedCRC.h
Production code should not contain any test-specific checks. Rather
than checking `UNITTEST`, MbedCRC.h can simply include in all cases
<mstd_type_traits> whose unit test stub exists.

Also remove the `UNITTEST` macro from CMake definitions of kvstore
unit tests which depend on MbedCRC.h.
ls
1 parent dd81b53 commit 9b8acca1360a65062e14b2dc6b7f59d6d0235044
@Lingkai Dong Lingkai Dong authored on 6 Jul 2021
Showing 3 changed files
View
drivers/include/drivers/MbedCRC.h
View
storage/kvstore/filesystemstore/tests/UNITTESTS/FileSystemStore/CMakeLists.txt
View
storage/kvstore/tdbstore/tests/UNITTESTS/TDBStore/CMakeLists.txt