mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 18:13:35 +08:00
All unit tests compile, but crash. This is the most horrifying commit I've ever made.
This commit is contained in:
@@ -55,7 +55,9 @@ TEST(TransportStatsProvider, Basic)
|
||||
* Sending a malformed frame, it must be registered as tranfer error
|
||||
*/
|
||||
uavcan::Frame frame(uavcan::protocol::GetTransportStats::DefaultDataTypeID, uavcan::TransferTypeServiceRequest,
|
||||
2, 1, 0, 0, true);
|
||||
2, 1, 0);
|
||||
frame.setStartOfTransfer(true);
|
||||
frame.setEndOfTransfer(true);
|
||||
uavcan::CanFrame can_frame;
|
||||
ASSERT_TRUE(frame.compile(can_frame));
|
||||
nodes.can_a.read_queue.push(can_frame);
|
||||
|
||||
Reference in New Issue
Block a user