diff options
Diffstat (limited to 'app-office/gnucash/files')
-rw-r--r-- | app-office/gnucash/files/gnucash-4.12-drop-broken-test.patch | 30 | ||||
-rw-r--r-- | app-office/gnucash/files/gnucash-4.12-fix-test.patch | 24 |
2 files changed, 54 insertions, 0 deletions
diff --git a/app-office/gnucash/files/gnucash-4.12-drop-broken-test.patch b/app-office/gnucash/files/gnucash-4.12-drop-broken-test.patch new file mode 100644 index 000000000000..c2b396bcf04f --- /dev/null +++ b/app-office/gnucash/files/gnucash-4.12-drop-broken-test.patch @@ -0,0 +1,30 @@ +From a52795b022e040d7a93bb4dc352780d832c55390 Mon Sep 17 00:00:00 2001 +From: Marco Scardovi <mscardovi@icloud.com> +Date: Sat, 26 Nov 2022 22:38:02 +0100 +Subject: [PATCH] Fix test + +Signed-off-by: Marco Scardovi <mscardovi@icloud.com> +--- + libgnucash/core-utils/test/CMakeLists.txt | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/libgnucash/core-utils/test/CMakeLists.txt b/libgnucash/core-utils/test/CMakeLists.txt +index 3b724c7c632..07add8b8699 100644 +--- a/libgnucash/core-utils/test/CMakeLists.txt ++++ b/libgnucash/core-utils/test/CMakeLists.txt +@@ -19,9 +19,6 @@ endmacro() + add_core_utils_test(test-gnc-glib-utils test-gnc-glib-utils.c) + add_core_utils_test(test-resolve-file-path test-resolve-file-path.c) + add_core_utils_test(test-userdata-dir test-userdata-dir.c) +-if (NOT MAC_INTEGRATION AND NOT WIN32) +- add_core_utils_test(test-userdata-dir-invalid-home test-userdata-dir-invalid-home.c) +-endif() + if (MAC_INTEGRATION) + target_compile_options(test-userdata-dir PRIVATE ${OSX_EXTRA_COMPILE_FLAGS}) + target_compile_definitions(test-userdata-dir PRIVATE ${GTK_MAC_CFLAGS_OTHER}) +@@ -53,4 +50,4 @@ gnc_add_test(test-gnc-path-util "${test_gnc_path_util_SOURCES}" + + set_dist_list(test_core_utils_DIST CMakeLists.txt + test-gnc-glib-utils.c test-resolve-file-path.c test-userdata-dir.c +- test-userdata-dir-invalid-home.c gtest-path-utilities.cpp) ++ gtest-path-utilities.cpp) 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..e80c712214e6 --- /dev/null +++ b/app-office/gnucash/files/gnucash-4.12-fix-test.patch @@ -0,0 +1,24 @@ +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> +--- + libgnucash/engine/mocks/fake-qofquery.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libgnucash/engine/mocks/fake-qofquery.cpp b/libgnucash/engine/mocks/fake-qofquery.cpp +index 15341189aa8..a82dadebf02 100644 +--- 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 */ |