summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-07-29 17:13:13 +0200
committerWim Taymans <wtaymans@redhat.com>2019-07-29 17:13:13 +0200
commitbf618c34404e88aa48219b48449785061c0a93c2 (patch)
tree0d6630baf7bd7328fc0da2e9fbeb73e156bcf9d9
parente11a81ba4f0b0ee1d5be3ac4a2a077b452377dbe (diff)
tests: fix unit tests again
-rw-r--r--spa/tests/test-buffer.c3
-rw-r--r--src/tests/test-interfaces.c4
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));
}