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

Add a test that verifies that grab_window() returns something #5478

Closed
wants to merge 2 commits into from

Conversation

tronical
Copy link
Member

No description provided.

@@ -1025,3 +1025,47 @@ impl std::error::Error for PlatformError {
fn error_is_send() {
let _: Box<dyn std::error::Error + Send + Sync + 'static> = PlatformError::NoPlatform.into();
}

// Sorry, can't test with rust test harness and multiple threads.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this should be an "integration" test instead?
I was thinking perhaps there should be one test on each renderer

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that would be better. So maybe a duplicated test in internal/renderers/*/tests/grab_window.rs ?

…ier callback

During the invocation of the notifier, a mutable borrow is active. Don't try to acquire that again when entering the rendering code path for the screenshotting, by checking first if we have a surface to acquire the required graphics api enum (we don't) before trying to acquire the notifier.
@tronical
Copy link
Member Author

I give up, random hangs in the CI.

@tronical tronical closed this Jun 26, 2024
@tronical tronical deleted the simon/grab-window-test branch June 26, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants