Skip to content

Commit

Permalink
AP_Math: tests: we no longer expect an exception when limiting corner…
Browse files Browse the repository at this point in the history
… case
  • Loading branch information
peterbarker authored and tpwrules committed Jan 7, 2025
1 parent 3ac3c35 commit 5f420e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Math/tests/test_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,10 +509,10 @@ TEST(Control, test_limit_accel)
signal_caught = true;
} else {
// we come through here normally
EXPECT_FALSE(limit_accel_xy(vel, accel, accel_max));
EXPECT_TRUE(limit_accel_xy(vel, accel, accel_max));
}

EXPECT_TRUE(signal_caught);
EXPECT_FALSE(signal_caught);

// now restore the original fpe handling
if (fesetexceptflag(&old_except_flags, excepts) == -1) {
Expand Down

0 comments on commit 5f420e7

Please sign in to comment.