From dcdd9601e0111e7859c7f1d0868a4884f5a4eadc Mon Sep 17 00:00:00 2001 From: Maximilian Klemm Date: Tue, 24 Jun 2025 07:06:27 +0200 Subject: [PATCH] fix: ZXingReaderTest in example folder may fail 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. --- example/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 8f34e72019..6ee5d7af4a 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -18,6 +18,7 @@ if (ZXING_READERS) target_link_libraries (ZXingReader ZXing::ZXing stb::stb) add_test(NAME ZXingReaderTest COMMAND ZXingReader -fast -format qrcode test.png) # see above + set_tests_properties(ZXingReaderTest PROPERTIES DEPENDS ZXingWriterTest) install(TARGETS ZXingReader DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() 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