mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-06 11:48:02 +02:00
tests: dbus-device-reservation: free the string properties
This commit is contained in:
parent
7ba93fa3a1
commit
c97eccea16
1 changed files with 4 additions and 0 deletions
|
|
@ -124,6 +124,7 @@ test_dbus_basic (TestDbusFixture *self, gconstpointer data)
|
|||
g_main_loop_run (self->loop);
|
||||
g_assert_nonnull (self->property);
|
||||
g_assert_cmpstr (self->property, ==, "Server");
|
||||
g_free (self->property);
|
||||
|
||||
/* Request the app device name property on r1 and make sure it is hw:0,0 */
|
||||
self->property = NULL;
|
||||
|
|
@ -132,6 +133,7 @@ test_dbus_basic (TestDbusFixture *self, gconstpointer data)
|
|||
g_main_loop_run (self->loop);
|
||||
g_assert_nonnull (self->property);
|
||||
g_assert_cmpstr (self->property, ==, "hw:0,0");
|
||||
g_free (self->property);
|
||||
|
||||
/* Request the priority property on r2 and make sure it is also 10 because r1
|
||||
* owns the device */
|
||||
|
|
@ -171,6 +173,7 @@ test_dbus_basic (TestDbusFixture *self, gconstpointer data)
|
|||
g_main_loop_run (self->loop);
|
||||
g_assert_nonnull (self->property);
|
||||
g_assert_cmpstr (self->property, ==, "PipeWire");
|
||||
g_free (self->property);
|
||||
|
||||
/* Request the app device name property on r2 and make sure it is hw:0,0 */
|
||||
self->property = NULL;
|
||||
|
|
@ -179,6 +182,7 @@ test_dbus_basic (TestDbusFixture *self, gconstpointer data)
|
|||
g_main_loop_run (self->loop);
|
||||
g_assert_nonnull (self->property);
|
||||
g_assert_cmpstr (self->property, ==, "hw:0,0");
|
||||
g_free (self->property);
|
||||
|
||||
/* Request the priority property on r1 and make sure it is also 15 because r2
|
||||
* owns the device now */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue