Commit graph

2202 commits

Author SHA1 Message Date
Enno Rehling
cb706c2cf2 equipment.test is down to two leaks and one TODO 2016-09-07 21:29:54 +02:00
Enno Rehling
d84ed1f89d move static variable cleanup to kernel_done.
clean up some more.
2016-09-07 21:22:05 +02:00
Enno Rehling
ef5ce04335 remove unused code 2016-09-07 20:50:52 +02:00
Enno Rehling
144fcbef58 Merge branch 'develop' of github.com:ennorehling/eressea into develop 2016-09-07 20:48:16 +02:00
Enno Rehling
dda845e2f4 free configuration data (valgrind calls it still-reachable leaks). 2016-09-07 20:46:41 +02:00
Enno Rehling
c8283060f9 test_setup/cleanup for equipment.test 2016-09-07 19:04:42 +02:00
Enno Rehling
282cc129d7 spellbook_clear crash fix 2016-09-07 19:02:03 +02:00
Enno Rehling
dd2f146e27 fix equipment static memory leak 2016-09-07 17:09:37 +01:00
Enno Rehling
af310d48d6 remove unused function after refactoring 2016-09-07 17:52:12 +02:00
Enno Rehling
4115bff79b eliminate leak from alliance.test 2016-09-07 17:50:51 +02:00
Enno Rehling
9499919387 fix uninitialized member 2016-09-07 17:48:27 +02:00
Enno Rehling
632f25d429 try to eliminate memory leak in command.test 2016-09-07 16:39:54 +01:00
Enno Rehling
1ad2775f51 simplify add_command 2016-09-07 15:43:04 +02:00
Enno Rehling
eed6e1d88d add_command has an unused argument 2016-09-07 15:36:48 +02:00
Enno Rehling
d962dd110a correct type. 2016-09-07 15:29:40 +02:00
Enno Rehling
133bef1041 fix compilation.
eliminate the last order-related memory leak.
2016-09-06 22:21:06 +02:00
Enno Rehling
270c12b6d8 these config tests were leaking orders.
convert them to test_setup use, too.
2016-09-06 21:04:25 +01:00
Enno Rehling
00804344fd fix order-related memory leaks 2016-09-06 21:07:23 +02:00
Enno Rehling
a5ce809f41 fix memory leak in umlaut.c with reference counting (sad). 2016-09-06 19:57:07 +01:00
Enno Rehling
b62fa64d8c closer leak debugging 2016-09-05 20:05:36 +02:00
Enno Rehling
c525553c49 unused variable 2016-09-05 17:48:54 +01:00
Enno Rehling
fa6a3e377d relocate the addtoken leak "test" to umlaut.test.c 2016-09-05 18:46:02 +02:00
Enno Rehling
7b5383dfff disable all direction tests instead of the minimal leak proof 2016-09-05 17:57:59 +02:00
Enno Rehling
530a6d067f Merge branch 'develop' of github.com:ennorehling/eressea into develop 2016-09-04 22:52:13 +02:00
Enno Rehling
b2b9b9eae4 test having more than one name per direction.
use test_setup.
2016-09-04 21:52:09 +01:00
Enno Rehling
19d490ce71 test_create_locale leaks memory.
adding a simple test that shows this (under valgrind).
2016-09-04 22:07:52 +02:00
Enno Rehling
a5b3fad67a skeleton of a language test, try to find init_direction memory leak. 2016-09-04 20:27:36 +01:00
Enno Rehling
a56f51099c use test_setup in seen.test 2016-09-04 21:15:22 +02:00
Enno Rehling
e7b93adb75 rearranging deckchairs on the HMS Random Numbers. 2016-09-04 17:04:41 +01:00
Enno Rehling
388ea174ef disable conversion warning (for mtrand code).
do not know how to do it selectively, so disabling all of it.
2016-09-04 13:09:10 +02:00
Enno Rehling
2ccd2c0c16 Merge branch 'develop' of github.com:ennorehling/eressea into develop 2016-09-04 10:47:40 +02:00
Enno Rehling
00c4c337ff remove crypto submodule, stea mtrand from it 2016-09-04 10:47:21 +02:00
Enno Rehling
b5298f60bf Merge pull request #552 from ennorehling/issue-551-description
issue #551 and some other tests
2016-09-02 15:43:08 +01:00
Enno Rehling
4e323f8120 bugfix #551: do not return a stack buffer that isn't static 2016-09-02 16:18:45 +02:00
Enno Rehling
b725e9676a simple test for basic unit descriptions 2016-09-02 09:29:52 +02:00
Enno Rehling
ed2c4ec56a missing null-check before isparam 2016-09-01 21:57:50 +02:00
Enno Rehling
3a719226a2 Merge branch 'master' into develop
Conflicts:
	src/buildno.h
2016-09-01 21:55:52 +02:00
Enno Rehling
9f7e4effc2 Merge branch 'master' of github.com:eressea/server 2016-09-01 21:51:45 +02:00
Enno Rehling
fed399042d fix piracy order aliasing issue #549
https://bugs.eressea.de/view.php?id=2233
piracy_cmd always works on u->thisorder, does not need an argument.
2016-09-01 20:40:07 +01:00
Enno Rehling
b321918cd1 check and fix destroy_cmd syntax error handling 2016-08-31 20:38:20 +02:00
Enno Rehling
3c1704e691 Merge remote-tracking branch 'upstream/develop' into develop 2016-08-31 18:51:29 +01:00
Enno Rehling
87fed5b7d2 Merge pull request #548 from ennorehling/refactor-volcano
new tests, TODOs removed, remove code duplication
2016-08-31 17:19:29 +01:00
Enno Rehling
298b3893f2 update development version 2016-08-31 18:18:51 +02:00
Enno Rehling
6204bdc000 Merge branch 'develop' 2016-08-31 18:17:50 +02:00
Enno Rehling
a858ceda76 release version 3.9.1 2016-08-31 18:15:54 +02:00
Enno Rehling
a08ad52809 Merge branch 'develop'
Conflicts:
	src/util/log.c
2016-08-31 18:15:07 +02:00
Enno Rehling
f722364090 Merge branch 'develop' of github.com:ennorehling/eressea into develop 2016-08-31 17:40:50 +02:00
Enno Rehling
24c877d974 reduce failing test to less code 2016-08-31 17:38:33 +02:00
Enno Rehling
8aec1c3e7f narrowing down the memory leak in jsonconf.test.c, by adding a similar
test to umlaut.test.c that exhibits the same behavior in a simpler
setting.
2016-08-31 17:37:07 +02:00
Enno Rehling
1eb0fd758a fix broken seaserpent test 2016-08-31 16:47:36 +02:00
Enno Rehling
8a157de36c only name monsters that have a naming function. test is bad, failing. 2016-08-31 16:43:02 +02:00
Enno Rehling
9a72157cf3 split out seaserpent creation for testing 2016-08-31 11:35:07 +02:00
Enno Rehling
cd46bac132 fix mac build with clang 7.3 2016-08-31 09:42:36 +02:00
Enno Rehling
fa729ba972 fix mac build with clang 7.3 2016-08-31 09:26:48 +02:00
Enno Rehling
afeea58999 fix include order 2016-08-30 21:22:32 +02:00
Enno Rehling
a1d56acfe6 missing include, I believe 2016-08-30 20:15:28 +01:00
Enno Rehling
d9e541843b further reduce number of bt_find calls. 2016-08-30 09:36:09 +01:00
Enno Rehling
5bb9a10a46 is_building_type should be a quicker way to test for a building type than bt_find. 2016-08-30 09:13:59 +01:00
Enno Rehling
fdc91c01a0 remove some FIXME comments 2016-08-30 07:56:40 +01:00
Enno Rehling
2d1a13a811 death to static caches! 2016-08-30 07:51:05 +01:00
Enno Rehling
257d5c18bb remove unused FASTER_SKILLMOD optimization 2016-08-30 07:39:57 +01:00
Enno Rehling
ce7eb9663a remove dead phoenix feature. 2016-08-29 20:56:00 +01:00
Enno Rehling
eee4fa9e91 I am pretty sure the phoenix doesn't work. 2016-08-29 20:53:53 +01:00
Enno Rehling
d0c1b2daa4 that's all folks. no more static curse_type caches. 2016-08-29 20:36:26 +01:00
Enno Rehling
873e6f8086 remove more static curse_type variables 2016-08-29 20:34:30 +01:00
Enno Rehling
f47113e9bd eliminate static curse variables (gbdream & more) 2016-08-29 20:31:18 +01:00
Enno Rehling
1a1ec3f363 cleanup: remove static curse_type variables. 2016-08-29 20:12:31 +01:00
Enno Rehling
b43ac6ab27 remove static initialization code 2016-08-29 19:52:43 +01:00
Enno Rehling
aa998166e4 optimization: the orcish curse is pretty rare, and we are spending a lot of time on processing it.
remove static variables.
2016-08-29 19:44:43 +01:00
Enno Rehling
8ff26eb0e4 optimization: no need to look for a curse if unit has no attribs. 2016-08-29 19:41:21 +01:00
Enno Rehling
40d9ebfa94 reduce code duplication: itemcloak code was copied between NR and CR. 2016-08-29 19:37:47 +01:00
Enno Rehling
5a73fc80d8 telepath_see is a planned, but never realized, feature. delete it. 2016-08-29 18:20:36 +01:00
Enno Rehling
4bc8817056 remove a TODO that was ill-advised. The reason that "resources" is a list is that it's built incrementally. 2016-08-29 18:15:20 +01:00
Enno Rehling
ef44a4534e add a test for copying resources message arguments.
my plan is to add a new argument type for arrays of resources with fewer allocations.
2016-08-29 17:31:09 +01:00
Enno Rehling
fb2b6495e5 promote spell.test error logging to a tests.c API, use it for item.test 2016-08-29 15:19:17 +01:00
Enno Rehling
2c5063095d fixed: tests that try to create duplicate spells do not spam stderr. 2016-08-29 14:49:31 +01:00
Enno Rehling
c032091b39 new rule: call test_setup to begin test, test_cleanup at end. 2016-08-29 14:21:28 +01:00
Enno Rehling
1c5fcded9f allow control over stderr logging from tests.
separate test_cleanup from test_setup.
2016-08-29 14:09:47 +01:00
Enno Rehling
2eb9b5c5ea delete dead code (dbrace) 2016-08-29 13:49:39 +01:00
Enno Rehling
fd273848ae add an assert_alloc macro for allocations that cannot fail. 2016-08-29 09:26:49 +01:00
Enno Rehling
1f3413a9b4 annotations 2016-08-29 08:55:59 +01:00
Enno Rehling
0d609f2115 test magicwalls and strongwalls effects on buildings. 2016-08-29 08:53:09 +01:00
Enno Rehling
23a91be9c1 basic test for skilldiff. 2016-08-29 08:06:33 +01:00
Enno Rehling
194f96c50f eliminate some possible null-pointer exceptions 2016-08-28 21:03:23 +01:00
Enno Rehling
5bc5dbdca1 check for out-of-memory situations. 2016-08-28 20:54:02 +01:00
Enno Rehling
33701ab891 make describe_braineater more generic (describe_race). 2016-08-28 20:44:45 +01:00
Enno Rehling
c18d75207e remove a TODO: static return variable from make_names. 2016-08-28 20:31:25 +01:00
Enno Rehling
e3b0dfedc9 race naming functions do more work than before. 2016-08-28 20:27:40 +01:00
Enno Rehling
514565d66b move race_name_func registrations into race.c 2016-08-28 20:02:45 +01:00
Enno Rehling
0f3de70ced refactor to push back the const-ness of generated names. 2016-08-28 19:06:14 +01:00
Enno Rehling
d1b6629281 extract counting name particles. 2016-08-28 19:00:04 +01:00
Enno Rehling
0ac30c65a1 refactoring prior to removing static variable 2016-08-28 18:15:00 +01:00
Enno Rehling
eb8db3bfb9 test undead name generation. 2016-08-28 18:08:52 +01:00
Enno Rehling
020ab942ec add tests for monster naming functions (existence only). 2016-08-28 17:37:08 +01:00
Enno Rehling
534708d83e add a test for DESTROY <limit> ROAD 2016-08-28 16:51:16 +01:00
Enno Rehling
a451d61f23 simplify destroy_cmd parsing. 2016-08-28 16:48:06 +01:00
Enno Rehling
808d51429e test destroy_road message arguments. 2016-08-28 16:44:14 +01:00
Enno Rehling
b0400a797d when not skilled enough to destroy a road, don't get a destroy_road message.
test destroy_road message.
2016-08-28 16:31:29 +01:00
Enno Rehling
1cdeab5e06 test destroy_road skill scaling and person scaling. 2016-08-28 16:13:26 +01:00
Enno Rehling
1e04e20671 testing destroy_road by way of destroy_cmd.
two simple cases only.
2016-08-28 14:31:25 +01:00