diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-06 15:10:46 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-06 15:10:46 +0000 |
commit | ee8ad1509f726e8fa598472117e5bbffd241ebab (patch) | |
tree | 4ac9a10ae4694145a7287533143f85af923c1954 /app-office/gnucash/files/gnucash-4.12-fix-test.patch | |
parent | 1fe7aef6facf013a94eac853717f4da4d5d3c5b3 (diff) |
gentoo auto-resync : 06:12:2022 - 15:10:45
Diffstat (limited to 'app-office/gnucash/files/gnucash-4.12-fix-test.patch')
-rw-r--r-- | app-office/gnucash/files/gnucash-4.12-fix-test.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-office/gnucash/files/gnucash-4.12-fix-test.patch b/app-office/gnucash/files/gnucash-4.12-fix-test.patch new file mode 100644 index 000000000000..03b4bba29c24 --- /dev/null +++ b/app-office/gnucash/files/gnucash-4.12-fix-test.patch @@ -0,0 +1,20 @@ +https://github.com/Gnucash/gnucash/pull/1472 + +From 6fe2028bca49f455b7841d178a712baec8f72919 Mon Sep 17 00:00:00 2001 +From: Marco Scardovi <mscardovi@icloud.com> +Date: Thu, 24 Nov 2022 23:20:07 +0100 +Subject: [PATCH] Fix test + +Signed-off-by: Marco Scardovi <mscardovi@icloud.com> +--- a/libgnucash/engine/mocks/fake-qofquery.cpp ++++ b/libgnucash/engine/mocks/fake-qofquery.cpp +@@ -59,8 +59,8 @@ static class QofFakeQueryPool + { + ASSERT_TRUE(query_used((QofQuery*)query)); + auto it = std::find(m_queriesUsed.begin(), m_queriesUsed.end(), query); +- m_queriesUsed.erase(it); + m_queriesConsumed.push_back(*it); ++ m_queriesUsed.erase(it); + } + + /* Remove a formerly added QofFakeQueryObject from the pool */ |