connection: add test and fix a bug

Add a unit test for the connection

When we consumed all packets in a buffer, try to get more data instead
of failing right away.
This commit is contained in:
Wim Taymans 2019-03-19 11:44:23 +01:00
parent ca051282a4
commit a3e4726ea6
3 changed files with 157 additions and 5 deletions

View file

@ -73,6 +73,15 @@ pipewire_module_protocol_native = shared_library('pipewire-module-protocol-nativ
dependencies : pipewire_module_protocol_native_deps,
)
test('pw-test-protocol-native',
executable('pw-test-protocol-native',
[ 'module-protocol-native/test-connection.c',
'module-protocol-native/connection.c' ],
c_args : libpipewire_c_args,
include_directories : [configinc, spa_inc ],
dependencies : [pipewire_dep],
install : false))
pipewire_module_audio_dsp = shared_library('pipewire-module-audio-dsp',
[ 'module-audio-dsp.c',
'module-audio-dsp/audio-dsp.c',