mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 13:13:35 +08:00
Test update
This commit is contained in:
@@ -3,18 +3,17 @@
|
||||
*/
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <uavcan/FigureOfMerit.hpp>
|
||||
#include <uavcan/Timestamp.hpp>
|
||||
|
||||
/*
|
||||
* Objective of this test is to make sure that the generated types are being linked correcly.
|
||||
* This test requests the address of some static const member variables to make sure that there
|
||||
* will be no duplicated symbol linking errors.
|
||||
*/
|
||||
TEST(DsdlConst1, FigureOfMerit)
|
||||
TEST(DsdlConst1, Timestamp)
|
||||
{
|
||||
using uavcan::FigureOfMerit;
|
||||
using uavcan::Timestamp;
|
||||
|
||||
std::cout << &FigureOfMerit::MAX << std::endl;
|
||||
std::cout << &FigureOfMerit::MIN << std::endl;
|
||||
std::cout << &FigureOfMerit::UNKNOWN << std::endl;
|
||||
std::cout << &Timestamp::USEC_PER_LSB << std::endl;
|
||||
std::cout << &Timestamp::UNKNOWN << std::endl;
|
||||
}
|
||||
|
||||
@@ -3,14 +3,13 @@
|
||||
*/
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <uavcan/FigureOfMerit.hpp>
|
||||
#include <uavcan/Timestamp.hpp>
|
||||
|
||||
|
||||
TEST(DsdlConst2, FigureOfMerit)
|
||||
TEST(DsdlConst2, Timestamp)
|
||||
{
|
||||
using uavcan::FigureOfMerit;
|
||||
using uavcan::Timestamp;
|
||||
|
||||
std::cout << &FigureOfMerit::MAX << std::endl;
|
||||
std::cout << &FigureOfMerit::MIN << std::endl;
|
||||
std::cout << &FigureOfMerit::UNKNOWN << std::endl;
|
||||
std::cout << &Timestamp::USEC_PER_LSB << std::endl;
|
||||
std::cout << &Timestamp::UNKNOWN << std::endl;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <uavcan/helpers/ostream.hpp>
|
||||
|
||||
#include <uavcan/Timestamp.hpp>
|
||||
#include <uavcan/FigureOfMerit.hpp>
|
||||
#include <uavcan/mavlink/Message.hpp>
|
||||
#include <uavcan/protocol/ComputeAggregateTypeSignature.hpp>
|
||||
#include <uavcan/protocol/GetTransportStats.hpp>
|
||||
|
||||
Reference in New Issue
Block a user