Skip to content

Commit 14ebb28

Browse files
sdroegebilelmoussaoui
authored andcommitted
glib: Extend spawn_from_within() test to actually use a future that compiles with the normal spawn()
1 parent 62bf49f commit 14ebb28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

glib/src/main_context_futures.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,9 @@ mod tests {
754754
let l_clone = l.clone();
755755
move || {
756756
c.spawn_from_within(move || async move {
757+
let rc = std::rc::Rc::new(123);
758+
futures_util::future::ready(()).await;
759+
assert_eq!(std::rc::Rc::strong_count(&rc), 1);
757760
l_clone.quit();
758761
});
759762
}

0 commit comments

Comments
 (0)