Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
bce0b799
Commit
bce0b799
authored
3 years ago
by
Julian Bouzas
Browse files
Options
Downloads
Patches
Plain Diff
tests: si-standard-link: sync core before finishing
Makes sure core has finished any pending task before finishing the test.
parent
2caac5fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/modules/si-standard-link.c
+12
-0
12 additions, 0 deletions
tests/modules/si-standard-link.c
with
12 additions
and
0 deletions
tests/modules/si-standard-link.c
+
12
−
0
View file @
bce0b799
...
...
@@ -127,9 +127,21 @@ test_si_standard_link_setup (TestFixture * f, gconstpointer user_data)
f
->
sink_item
=
load_endpoint
(
f
,
"fakesink"
,
"Audio/Sink"
);
}
static
void
on_core_sync_done
(
WpCore
*
core
,
GAsyncResult
*
res
,
TestFixture
*
f
)
{
g_autoptr
(
GError
)
error
=
NULL
;
gboolean
ret
=
wp_core_sync_finish
(
core
,
res
,
&
error
);
g_assert_no_error
(
error
);
g_assert_true
(
ret
);
g_main_loop_quit
(
f
->
base
.
loop
);
}
static
void
test_si_standard_link_teardown
(
TestFixture
*
f
,
gconstpointer
user_data
)
{
wp_core_sync
(
f
->
base
.
core
,
NULL
,
(
GAsyncReadyCallback
)
on_core_sync_done
,
f
);
g_main_loop_run
(
f
->
base
.
loop
);
g_clear_object
(
&
f
->
sink_item
);
g_clear_object
(
&
f
->
src_item
);
g_clear_object
(
&
f
->
session
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment