diff --git a/pyext/pysairedis.i b/pyext/pysairedis.i index 32e76518a..8aad50ce7 100644 --- a/pyext/pysairedis.i +++ b/pyext/pysairedis.i @@ -2,6 +2,10 @@ %include "cpointer.i" %include "carrays.i" +// These objects cause issues on Buster because of the function pointers +%ignore _sai_struct_member_info_t; +%ignore _sai_object_type_info_t; + %{ #pragma GCC optimize("no-var-tracking-assignments") diff --git a/unittest/syncd/TestSyncd.cpp b/unittest/syncd/TestSyncd.cpp index c4e81469e..9816aa912 100644 --- a/unittest/syncd/TestSyncd.cpp +++ b/unittest/syncd/TestSyncd.cpp @@ -210,6 +210,7 @@ TEST(Syncd, inspectAsic) using namespace syncd; +#ifdef MOCK_METHOD class MockSelectableChannel : public sairedis::SelectableChannel { public: MOCK_METHOD(bool, empty, (), (override)); @@ -257,4 +258,5 @@ TEST_F(SyncdTest, processNotifySyncd) kfvOp(kco) = REDIS_ASIC_STATE_COMMAND_NOTIFY; })); syncd_object.processEvent(consumer); -} \ No newline at end of file +} +#endif