mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 15:43:33 +08:00
Updated the unit tests for compatibility with GCC 5.4
This commit is contained in:
@@ -15,6 +15,12 @@
|
||||
#include <uavcan/util/map.hpp>
|
||||
|
||||
|
||||
/*
|
||||
* TODO: This one test has been temporarily disabled because it is not compatible with newer versions of libstdc++
|
||||
* that ship with newer versions of GCC. The problem is that std::string has become too large to fit into a 64-byte
|
||||
* large memory block. This should be fixed in the future.
|
||||
*/
|
||||
#if 0
|
||||
static std::string toString(long x)
|
||||
{
|
||||
char buf[80];
|
||||
@@ -181,6 +187,7 @@ TEST(Map, Basic)
|
||||
map.reset();
|
||||
ASSERT_EQ(0, pool.getNumUsedBlocks());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
TEST(Map, PrimitiveKey)
|
||||
|
||||
Reference in New Issue
Block a user