Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martin Koch
wireplumber
Commits
c97eccea
Commit
c97eccea
authored
Jun 01, 2020
by
Julian Bouzas
Browse files
tests: dbus-device-reservation: free the string properties
parent
7ba93fa3
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/modules/dbus-device-reservation.c
View file @
c97eccea
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment