Skip to content

Commit

Permalink
#45: Fixed mode_handler tests with clang<16
Browse files Browse the repository at this point in the history
  • Loading branch information
aul12 committed Dec 30, 2022
1 parent f01fb29 commit 8e6c4ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tests/LowLevel/Application/mode_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,13 @@ TEST(TEST_NAME, modeselection) {
{{true, true, true, true, true}, MODE_REMOTE},
};

for (auto [availability_value, expected_mode] : decisionTable) {
for (auto row : decisionTable) {
/*
* Should be a structure binding but clang < 16 does not support capturing of structure bindings
* as those are by definition no variables...
*/
auto availability_value = row.first;
auto expected_mode = row.second;
mode_handler_init();
imuHandle.overrideFunc<imu_get_latest_data>([availability_value]() {
imu_data_t res{};
Expand Down

0 comments on commit 8e6c4ad

Please sign in to comment.