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

Only call global_mock->XInitThreads() if global mock exists #2569

Merged
merged 1 commit into from Aug 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/mir_test_doubles/mock_x11.cpp
Expand Up @@ -221,7 +221,14 @@ XErrorHandler XSetErrorHandler(XErrorHandler handler)

Status XInitThreads()
{
return global_mock->XInitThreads();
if (global_mock)
{
return global_mock->XInitThreads();
}
else
{
return 0;
}
}

int XSetWMHints(Display* display, Window window, XWMHints* wmhints)
Expand Down