diff options
-rw-r--r-- | spa/tests/test-buffer.c | 3 | ||||
-rw-r--r-- | src/tests/test-interfaces.c | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/spa/tests/test-buffer.c b/spa/tests/test-buffer.c index ba14d855..9480de0a 100644 --- a/spa/tests/test-buffer.c +++ b/spa/tests/test-buffer.c @@ -33,7 +33,8 @@ static void test_abi(void) spa_assert(SPA_DATA_MemPtr == 1); spa_assert(SPA_DATA_MemFd == 2); spa_assert(SPA_DATA_DmaBuf == 3); - spa_assert(SPA_DATA_LAST == 4); + spa_assert(SPA_DATA_MemId == 4); + spa_assert(SPA_DATA_LAST == 5); spa_assert(sizeof(struct spa_chunk) == 16); spa_assert(sizeof(struct spa_data) == 40); diff --git a/src/tests/test-interfaces.c b/src/tests/test-interfaces.c index c9cfcebc..e4d029f2 100644 --- a/src/tests/test-interfaces.c +++ b/src/tests/test-interfaces.c @@ -62,6 +62,8 @@ static void test_core_abi(void) void (*ping) (void *object, uint32_t id, int seq); void (*error) (void *object, uint32_t id, int seq, int res, const char *error); void (*remove_id) (void *object, uint32_t id); + void (*add_mem) (void *object, uint32_t id, uint32_t type, int fd, uint32_t flags); + void (*remove_mem) (void *object, uint32_t id); } events = { PW_VERSION_CORE_PROXY_EVENTS, }; TEST_FUNC(m, methods, version); @@ -82,6 +84,8 @@ static void test_core_abi(void) TEST_FUNC(e, events, ping); TEST_FUNC(e, events, error); TEST_FUNC(e, events, remove_id); + TEST_FUNC(e, events, add_mem); + TEST_FUNC(e, events, remove_mem); spa_assert(PW_VERSION_CORE_PROXY_EVENTS == 0); spa_assert(sizeof(e) == sizeof(events)); } |