John Ralls
83829e6513
Merge branch 'maint'
2023-03-14 10:43:45 -07:00
John Ralls
1020bde89c
Fix crashes in test-engine on Arch Linux.
...
Root cause is mutating a list while it's iterating. We're able to
protect it in two cases, have to copy it in xaccTransScrubGainsDate.
2023-03-14 10:33:39 -07:00
John Ralls
f735c64cac
Merge Richard Cohen's 'extern-c-part2' into master.
2023-03-04 13:51:07 -08:00
Richard Cohen
7b47c07f8e
Don't use extern "C" around #includes
...
Some I missed the first time. Some are new.
2023-03-03 18:55:42 +00:00
John Ralls
bbfa378783
Don't crash and do pass tests.
2023-03-02 17:03:39 -08:00
Richard Cohen
9f06859390
Remove references to old boost versions
...
we already require 1.67
2023-02-27 11:48:09 +00:00
Richard Cohen
bddb4468fa
Import GLIB2 as a target, and use it to simplify the CMakeLists
2023-02-21 12:59:42 +00:00
Robert Fewell
ec7cc27d6d
Add tests for default invoice report book property
2023-02-21 10:48:34 +00:00
Richard Cohen
9c6ad222a9
[-Wunused-function] - remove
2023-02-16 09:20:59 +00:00
Richard Cohen
d4dfe4e279
[-Wunused-local-typedef] - remove
...
libgnucash/engine/test/utest-Account.cpp:2414:11: warning: typedef ‘using AcctTypeType = struct std::underlying_type<GNCAccountType>’ locally defined but not used [-Wunused-local-typedefs]
2414 | using AcctTypeType = std::underlying_type<GNCAccountType>;
| ^~~~~~~~~~~~
2023-02-16 09:19:19 +00:00
Richard Cohen
78ec20515b
Remove some unused variables - and the initialization
...
- checked that any side effects were irrelevant
2023-02-06 14:20:28 +00:00
Richard Cohen
c819b03a17
Remove some unused variables - leave the side effect
2023-02-06 14:19:29 +00:00
Richard Cohen
ea2d3be217
Remove some unused variables with obviously no side effects
2023-02-06 14:19:22 +00:00
Geert Janssens
99506d331a
Reduce GncImportMatchMap to just the account
...
There is no added value in storing the book and account together
The book is easily retrieved from the account (as was
illustrated in the gnc_account_imap_new function).
I looked through the commit history to understand why this struct
was originally created and a long time ago it also had
a reference to a kvp frame.
2023-02-04 16:53:20 +01:00
John Ralls
f6919e60a7
Merge Richard Cohen's 'cleanup' into master.
2023-01-24 12:05:47 -08:00
Richard Cohen
6927535a0a
Remove unused test function get_object_is_initialized in qofobject.cpp
2023-01-24 13:36:37 +00:00
Richard Cohen
e83c91050c
Remove unneeded dummy.cpp
2023-01-24 13:36:02 +00:00
John Ralls
046e4a156e
Silence Clang deprecation warnings about sprintf.
2023-01-23 12:54:25 -08:00
Richard Cohen
1cec0cb3f3
Use internal extern "C" { ... } for C++
...
- removes warnings compiling swig engine
...
[ 10%] Generating swig-engine.cpp
.../libgnucash/engine/engine-helpers.h:31: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gnc-date.h:83: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/qofquery.h:90: Warning 302: Identifier 'QofQuery' redefined (ignored),
.../libgnucash/engine/gnc-option.hpp:55: Warning 302: previous definition of 'QofQuery'.
.../libgnucash/engine/gnc-commodity.h:56: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncBusiness.h:40: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncEntry.h:37: Warning 313: Unrecognized extern type "C++".
2023-01-23 18:40:01 +00:00
Richard Cohen
19bbde7000
Fix some typos
2023-01-23 15:01:46 +00:00
Christopher Lam
fd007a0af1
Merge branch 'maint'
2023-01-13 07:45:31 +08:00
Robert Fewell
6df866f876
Add tests for the reconcile account functions
2023-01-12 14:38:08 +00:00
John Ralls
fb9947b7b6
Rename GncDateTime's ymd to gnc_ymd to avoid a name conflict with Carbon.
2023-01-09 14:36:06 -08:00
Robert Fewell
3be25ff0a9
Add some tests for the account functions
2022-12-16 15:16:58 +00:00
Christopher Lam
bfc325f63c
Merge branch 'maint'
2022-11-27 16:12:46 +08:00
Christopher Lam
3d8a28898d
[gnc-budget] gnc_budget_get_account_period_note returns a const
...
to harmonize with all other char getters
2022-11-19 10:35:49 +08:00
Christopher Lam
3e5fcc8709
Merge branch 'maint'
2022-11-15 22:20:54 +08:00
Christopher Lam
6f80c548e6
[gtest-qofevent.cpp] comprehensive tests for qofevent
2022-11-05 09:25:24 +08:00
Christopher Lam
b87aa004f9
[test-qofbook] add tests for unknown features
...
tests that gnc_features_test_unknown returns a suitable error message
2022-10-31 10:40:12 +08:00
Christopher Lam
fc94b41c81
Merge branch 'maint'
2022-10-29 21:53:57 +08:00
Christopher Lam
4716af24e4
Merge branch 'maint'
2022-10-29 21:16:34 +08:00
Christopher Lam
f2354d6b2a
[test-qofbook.c] add test for gnc_features_set_unused
2022-10-29 21:01:08 +08:00
John Ralls
cf088f2a70
Merge John Ralls's 'Bug798614' into maint.
2022-10-28 15:27:28 -07:00
Christopher Lam
6f6d2fef48
[test-qofbook] basic features test
...
sets a feature and tests it's set. it's impossible to design a book
with unknown features using the API.
2022-10-27 20:10:49 +08:00
John Ralls
d8417c3cfa
Move gnc-euro.[ch] to engine and unit test it.
2022-09-30 15:12:12 -07:00
John Ralls
3949821da6
Merge branch 'maint'
2022-09-25 11:50:10 -07:00
John Ralls
2505955ab9
Fix test failure from Bug 798616 fix.
2022-09-20 09:09:34 -07:00
Christopher Lam
161b07b241
Merge branch 'maint'
2022-09-09 21:23:40 +08:00
luz paz
ba94730a23
Fix various typos
...
Found via `codespell`
2022-09-06 10:44:29 -04:00
John Ralls
95361ad060
[options] Move gnc-options test to engine/test/CMakeLists.txt.
2022-08-29 17:05:33 -07:00
John Ralls
4ae17d12c7
[options] Move options from app-utils to engine.
...
Options is required for book options that are stored as part of the data
file and so belongs in engine.
2022-08-25 22:09:56 -07:00
Christopher Lam
0b5a4cd298
Merge branch 'maint'
2022-08-03 20:38:08 +08:00
Christopher Lam
ec3e996f92
tests xaccTransGetTxnType heuristics
...
tests TXN_TYPE_NONE in utest-Transaction.c
testing TXN_TYPE_INVOICE, TXN_TYPE_PAYMENT, and TXN_TYPE_LINK will
require valid posted invoices, so, are best tested in utest-Invoice.c
2022-07-18 09:24:05 +08:00
Christopher Lam
fd12d3900c
[Transaction.c] use heuristics to determine txn->txn_type
2022-07-18 09:24:05 +08:00
John Ralls
3fd8bd9ddf
Merge branch 'maint'
2022-07-16 17:15:20 -07:00
John Ralls
9f6d495ca1
Fix use-after-free crash in utest-Invoice.
2022-07-08 18:12:26 +08:00
Christopher Lam
dc620d4b24
Merge branch 'maint'
2022-04-22 13:43:47 +08:00
Christopher Lam
e1d52963ed
[account.cpp] restore breadth-first search for 2 functions
...
gnc_account_lookup_by_name and gnc_account_lookup_by_code were
searching breadth-first and accidentally changed to depth-first in
4.7.
as reported in https://github.com/Gnucash/gnucash/pull/1101#issuecomment-1098146573
2022-04-15 23:35:38 +08:00
John Ralls
95487eb4a0
Merge branch 'maint'
...
# Conflicts:
# gnucash/gnome/window-reconcile2.c
# libgnucash/app-utils/options.scm
# libgnucash/engine/gnc-numeric.cpp
2022-04-14 18:02:17 -07:00
luz paz
8adedc2248
Fix various typos
...
Found via `codespell -q 3 -S *.po,./po,*.min.js,./ChangeLog*,./NEWS,./borrowed,./doc/README*,./AUTHORS,./libgnucash/tax/us/txf-de*,./data/accounts -L ans,ba,cas,dragable,gae,iff,iif,mut,nd,numer,parm,parms,startd,stoll`
2022-04-08 14:12:50 -04:00