forked from pool/zxing-cpp
Dirk Mueller
2d06ac8c78
Revert to 1.2.0. Newer versions are pre-2.0 with ABI / API changes. It breaks libreoffice. Add fmt 9 compatibility patch. OBS-URL: https://build.opensuse.org/request/show/1004900 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=25
45 lines
1.6 KiB
Diff
45 lines
1.6 KiB
Diff
From 6dc756175003658cafb9039185a5094b9c157ba6 Mon Sep 17 00:00:00 2001
|
|
From: axxel <awagger@gmail.com>
|
|
Date: Tue, 26 Jul 2022 22:42:00 +0200
|
|
Subject: [PATCH] test: update to libfmt v9.0.0
|
|
|
|
---
|
|
test/blackbox/BlackboxTestRunner.cpp | 7 +++----
|
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/test/blackbox/BlackboxTestRunner.cpp b/test/blackbox/BlackboxTestRunner.cpp
|
|
index 0df58ba..b8afe14 100644
|
|
--- a/test/blackbox/BlackboxTestRunner.cpp
|
|
+++ b/test/blackbox/BlackboxTestRunner.cpp
|
|
@@ -158,8 +158,7 @@ static void doRunTests(
|
|
auto folderName = directory.stem();
|
|
|
|
if (Size(imgPaths) != totalTests)
|
|
- fmt::print("TEST {} => Expected number of tests: {}, got: {} => FAILED\n", folderName, totalTests,
|
|
- imgPaths.size());
|
|
+ fmt::print("TEST {} => Expected number of tests: {}, got: {} => FAILED\n", folderName.string(), totalTests, imgPaths.size());
|
|
|
|
for (auto& test : tests) {
|
|
fmt::print("{:20} @ {:3}, {:3}", folderName.string(), test.rotation, Size(imgPaths));
|
|
@@ -234,7 +233,7 @@ static void doRunStructuredAppendTest(
|
|
}
|
|
|
|
if (Size(imageGroups) != totalTests)
|
|
- fmt::print("TEST {} => Expected number of tests: {}, got: {} => FAILED\n", folderName, totalTests,
|
|
+ fmt::print("TEST {} => Expected number of tests: {}, got: {} => FAILED\n", folderName.string(), totalTests,
|
|
imageGroups.size());
|
|
|
|
for (auto& test : tests) {
|
|
@@ -445,7 +444,7 @@ int runBlackBoxTests(const fs::path& testPathPrefix, const std::set<std::string>
|
|
{ 17, 20, 0 },
|
|
{ 19, 20, 180 },
|
|
});
|
|
-
|
|
+
|
|
runTests("upca-extension-1", "UPC-A", 6, {
|
|
{ 3, 6, 0 },
|
|
{ 4, 6, 180 },
|
|
--
|
|
2.37.3
|
|
|