Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glib-macros: add test macro for async-glib-context tests #1521

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

BiagioFesta
Copy link
Contributor

Added a procedural macro for async tests, wrapping them in glib::MainContext.
Not sure if it's useful for others, but I found myself needing this occasionally. Feel free to reject if it's not a good fit.

glib/tests/log.rs Outdated Show resolved Hide resolved
glib-macros/src/test.rs Outdated Show resolved Hide resolved
glib-macros/src/lib.rs Outdated Show resolved Hide resolved
@sdroege sdroege merged commit 1534916 into gtk-rs:master Sep 30, 2024
47 of 48 checks passed
@sdroege sdroege added the needs-backport PR needs backporting to the current stable branch label Sep 30, 2024
@BiagioFesta BiagioFesta deleted the wip/bfesta/macro-test-async branch September 30, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport PR needs backporting to the current stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants