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

fix tests on qt 5.12 #47780

Merged
merged 1 commit into from
Nov 13, 2023
Merged

fix tests on qt 5.12 #47780

merged 1 commit into from
Nov 13, 2023

Conversation

jkarneges
Copy link
Member

@jkarneges jkarneges commented Nov 11, 2023

Qt 5.12 does not have QTEST_MAIN_IMPL, only QTEST_MAIN, the latter of which declares a function literally named main. In order to get the impl under a different name for each test, QTEST_MAIN is wrapped in namespaces (one named Main to avoid ambiguity, and one with no name for file-locality) and then called from differently-named functions.

@jkarneges jkarneges merged commit 4186100 into main Nov 13, 2023
1 check passed
@jkarneges jkarneges deleted the jkarneges/tests-oldqt branch November 13, 2023 19:25
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