Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions transmission_interface/test/simple_transmission_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ TEST_P(BlackBoxTest, IdentityMap)
testIdentityMap(trans, HW_IF_EFFORT, -1.0);
}

#ifdef __APPLE__
#define INSTANTIATE_TEST_CASE_P_COMPAT ,
#else
#define INSTANTIATE_TEST_CASE_P_COMPAT
#endif

INSTANTIATE_TEST_CASE_P(
IdentityMap,
BlackBoxTest,
Expand All @@ -176,10 +182,9 @@ INSTANTIATE_TEST_CASE_P(
SimpleTransmission(10.0, 1.0),
SimpleTransmission(10.0, -1.0),
SimpleTransmission(-10.0, 1.0),
// remove once INSTANTIATE_TEST_SUITE_P is available to use in gtest
// https://github.com/google/googletest/issues/1419
// cppcheck-suppress syntaxError
SimpleTransmission(-10.0, -1.0)), );
SimpleTransmission(-10.0, -1.0))
// cppcheck-suppress syntaxError
INSTANTIATE_TEST_CASE_P_COMPAT);

class WhiteBoxTest : public TransmissionSetup,
public ::testing::Test {};
Expand Down