Skip to content

Commit dcdd960

Browse files
committed
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.
1 parent 35188c5 commit dcdd960

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if (ZXING_READERS)
1818
target_link_libraries (ZXingReader ZXing::ZXing stb::stb)
1919

2020
add_test(NAME ZXingReaderTest COMMAND ZXingReader -fast -format qrcode test.png) # see above
21+
set_tests_properties(ZXingReaderTest PROPERTIES DEPENDS ZXingWriterTest)
2122

2223
install(TARGETS ZXingReader DESTINATION ${CMAKE_INSTALL_BINDIR})
2324
endif()

0 commit comments

Comments
 (0)
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