Skip to content

Make ZXingReaderTest dependent on ZXingWriterTest #969

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

maxksielaff
Copy link
Contributor

If you add zxing-cpp as a submodule to a repo that is automatically tested via CI/CD the ZXingReaderTest may fail when its being executed beofre the ZXingWriterTest. Locally this rarely happens because when it successfully ran once, the necessary test.png is always there.

This pull request fixes this issue by making the ZXingReaderTest dependent on the ZXingWriterTest in the CMakeLists.txt.

The ZXingReaderTest sometimes fails, because it implicitly depends on
the ZXingWriterTest, as it needs the test.png created from this test.

This fix tells cmake explicitly that the ZXingReaderTest depends on
the ZXingWriterTest. This ensures that these unit tests are being
executed sequentially even when using ctest with the -j flag.
@axxel axxel merged commit 0a3797f into zxing-cpp:master Jun 24, 2025
18 checks passed
@axxel
Copy link
Collaborator

axxel commented Jun 24, 2025

Thanks!

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy