mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
connection: add more test
This commit is contained in:
parent
a3e4726ea6
commit
30747942ac
2 changed files with 12 additions and 1 deletions
|
|
@ -80,7 +80,11 @@ test('pw-test-protocol-native',
|
|||
c_args : libpipewire_c_args,
|
||||
include_directories : [configinc, spa_inc ],
|
||||
dependencies : [pipewire_dep],
|
||||
install : false))
|
||||
install : false),
|
||||
env : [
|
||||
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
||||
'PIPEWIRE_MODULE_DIR=@0@/src/modules/'.format(meson.build_root())
|
||||
])
|
||||
|
||||
pipewire_module_audio_dsp = shared_library('pipewire-module-audio-dsp',
|
||||
[ 'module-audio-dsp.c',
|
||||
|
|
|
|||
|
|
@ -109,6 +109,13 @@ static void test_read_write(struct pw_protocol_native_connection *in,
|
|||
spa_assert(read_message(in) == 0);
|
||||
spa_assert(read_message(in) == 0);
|
||||
spa_assert(read_message(in) == -1);
|
||||
|
||||
write_message(out, 1);
|
||||
write_message(out, 2);
|
||||
pw_protocol_native_connection_flush(out);
|
||||
spa_assert(read_message(in) == 0);
|
||||
spa_assert(read_message(in) == 0);
|
||||
spa_assert(read_message(in) == -1);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue