mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 19:50:35 +08:00
Meaningful error codes instead of plain -1
This commit is contained in:
@@ -67,7 +67,7 @@ TEST(Node, Basic)
|
||||
* Init the first node
|
||||
*/
|
||||
ASSERT_FALSE(node1.isStarted());
|
||||
ASSERT_EQ(-1, node1.spin(uavcan::MonotonicDuration::fromMSec(20))); // Not initialized - will fail
|
||||
ASSERT_EQ(-uavcan::ErrNotInited, node1.spin(uavcan::MonotonicDuration::fromMSec(20)));
|
||||
ASSERT_LE(0, node1.start(result));
|
||||
ASSERT_TRUE(node1.isStarted());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user