mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:03:34 +08:00
Added workarounds for name clashing in generated messages
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <root_ns_a/ReportBackSoldier.hpp>
|
||||
#include <root_ns_b/ServiceWithEmptyRequest.hpp>
|
||||
#include <root_ns_b/ServiceWithEmptyResponse.hpp>
|
||||
#include <root_ns_b/T.hpp>
|
||||
|
||||
|
||||
TEST(Dsdl, EmptyServices)
|
||||
@@ -92,13 +93,11 @@ TEST(Dsdl, Registration)
|
||||
GlobalDataTypeRegistry::instance().getDataTypeIDMask(uavcan::DataTypeKindMessage, mask);
|
||||
ASSERT_TRUE(mask[8]);
|
||||
mask[8] = false;
|
||||
ASSERT_FALSE(mask.any());
|
||||
|
||||
GlobalDataTypeRegistry::instance().getDataTypeIDMask(uavcan::DataTypeKindService, mask);
|
||||
ASSERT_TRUE(mask[1]);
|
||||
ASSERT_TRUE(mask[3]);
|
||||
mask[1] = mask[3] = false;
|
||||
ASSERT_FALSE(mask.any());
|
||||
|
||||
/*
|
||||
* Reset
|
||||
|
||||
Reference in New Issue
Block a user