Fix some unit test

Run abi checks only on x86_64 until we have sizes for more archs
Don't start a daemon in the tests because that would require
XDG_RUNTIME_DIR set
This commit is contained in:
Wim Taymans 2020-01-15 13:23:49 +01:00
parent 1cedfade3a
commit 4e8d85da2f
7 changed files with 59 additions and 12 deletions

View file

@ -63,6 +63,7 @@ static void test_abi(void)
spa_assert(f.denom == 125);
}
#if defined(__x86_64__)
/* dict */
spa_assert(sizeof(struct spa_dict_item) == 16);
spa_assert(sizeof(struct spa_dict) == 16);
@ -73,6 +74,7 @@ static void test_abi(void)
/* list */
spa_assert(sizeof(struct spa_list) == 16);
#endif
/* ringbuffer */
spa_assert(sizeof(struct spa_ringbuffer) == 8);