kunit: remove redundant semicolon from macro The EXPECT_CALL(...) macro expands to an expression so it shouldn't have a semicolon in it. The semicolon breaks functionality like Never(EXPECT_CALL(...)). Change-Id: I7ee3dc7b970c4a4f538d2372f00f5d4f9e82af30 Signed-off-by: Felix Guo <felixguo@google.com>
diff --git a/include/test/mock.h b/include/test/mock.h index 61e0089..6ac1183 100644 --- a/include/test/mock.h +++ b/include/test/mock.h
@@ -242,7 +242,7 @@ static inline bool is_naggy_mock(struct mock *mock) * A &struct mock_expectation representing the call expectation. * allowing additional conditions and actions to be specified. */ -#define EXPECT_CALL(expectation_call) mock_master_##expectation_call; +#define EXPECT_CALL(expectation_call) mock_master_##expectation_call #define mock_get_ctrl_internal(mock_object) (&(mock_object)->ctrl) #define mock_get_ctrl(mock_object) mock_get_ctrl_internal(mock_object)