Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[202405] Fix compilation error on Buster (#1483)
There is issue causing compilation failures of sairedis on Buster. Since the SONiC PTF container is still based on Buster, sairedis still needs to compile for Buster. The TestSyncd.cpp file uses the MOCK_METHOD macro. However, this macro is available only from version 1.10 of gmock, but Buster has version 1.8.1. As a simple fix, check to see if MOCK_METHOD is defined; if not, then don't compile this test.
- Loading branch information