From 5f420e759e8206b3f09edcfa490c1857406d9914 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 2 Jan 2025 15:41:00 +1100 Subject: [PATCH] AP_Math: tests: we no longer expect an exception when limiting corner case --- libraries/AP_Math/tests/test_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Math/tests/test_control.cpp b/libraries/AP_Math/tests/test_control.cpp index f06f97e427d8c..913cfe7fbf21b 100644 --- a/libraries/AP_Math/tests/test_control.cpp +++ b/libraries/AP_Math/tests/test_control.cpp @@ -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) {