Commit Graph

5126 Commits

Author SHA1 Message Date
Enno Rehling 14b1a164ed when tests are modifying important global state, they should reset it in teardown.
TODO: actually, they probably should not modify state in the first place.
2015-01-03 16:11:33 +01:00
Enno Rehling 4ed469c126 do not try setting luxury demand on oceans.
add some old E3 tests, disable those that have rotted.
2015-01-01 10:12:03 +01:00
Enno Rehling 66ba288bae type in spell description (bug 2061).
https://bugs.eressea.de/view.php?id=2061
2014-12-31 22:43:08 +01:00
Enno Rehling b713f650e6 Merge branch 'master' of github.com:badgerman/eressea 2014-12-31 21:14:43 +01:00
Enno Rehling b29a99f9ce memory leak in special_directions. 2014-12-31 21:14:21 +01:00
Enno Rehling f1c6d35fdf unused variable, gcc complains 2014-12-31 21:08:59 +01:00
Enno Rehling 9453aff7f5 fix running game-specific tests for E3, add them to the test suite. 2014-12-31 21:07:42 +01:00
Enno Rehling db083389c7 avoid fix_demand hitting an endless loop, kill bad use of static variables. 2014-12-31 20:01:01 +01:00
Enno Rehling 5e10bc4093 wait, no. tests did not pass when that change was made (for good reason, I assume). 2014-12-31 13:19:44 +01:00
Enno Rehling f524f23cd4 superfluous semicolons and other small stuff.
missing strings are an error, not a warning.
2014-12-31 13:17:54 +01:00
Enno Rehling e8ad542430 more thorough cleanup of tokens. 2014-12-31 01:50:54 +01:00
Enno Rehling 3b5653b353 all good tests cleanup after themselves. 2014-12-31 01:40:46 +01:00
Enno Rehling 6abe180f68 free spellbooks correctly. 2014-12-31 01:38:49 +01:00
Enno Rehling e9c3a00f7d it sucks that get_translations sometimes returns tokens, and sometimes critbit_trees. How is anyone supposed to free that correctly? 2014-12-31 01:29:10 +01:00
Enno Rehling 2fbb04140c at_deprecated was causing a small memory leak. 2014-12-31 01:17:49 +01:00
Enno Rehling c39be8d599 more casual leak removal. 2014-12-31 01:00:10 +01:00
Enno Rehling 80be0a8e89 I broke the Lua tests, must initialize resources in eressea.free_game binding 2014-12-31 00:20:19 +01:00
Enno Rehling e04a541167 do not initialize resources in test_cleanup, that makes no sense. 2014-12-31 00:16:24 +01:00
Enno Rehling 0566dca971 Merge branch 'master' of github.com:badgerman/eressea 2014-12-30 23:50:01 +01:00
Enno Rehling 228983202d properly free items at cleanup. 2014-12-30 23:49:50 +01:00
Enno Rehling 9f09b9b915 fixed memory leaks in tests, thanks to valgrind 2014-12-30 23:34:24 +01:00
Enno Rehling a55cb13924 make valgrind happy when running tests (cleanup) 2014-12-30 02:02:10 +01:00
Enno Rehling 49a77cdcde plug some more memory leaks. 2014-12-30 01:44:28 +01:00
Enno Rehling 89ce04a6c3 this obviously cannot be const, then. fix the build. 2014-12-30 00:02:27 +01:00
Enno Rehling 077a0aeeef plug some new memory leaks 2014-12-30 00:00:57 +01:00
Enno Rehling 95ab2826ec avoid running over the array of locales in order.c when re-creating locales for tests. 2014-12-29 23:53:00 +01:00
Enno Rehling 43351e03cd parsing needs to return a static buffer if it has no argument 2014-12-29 07:44:00 +01:00
Enno Rehling 6ffec7017c Merge branch 'master' of github.com:eressea/server 2014-12-29 07:33:49 +01:00
Enno Rehling f8fd0bed39 Merge pull request #92 from badgerman/master
miscellaneous refactoring
2014-12-29 07:33:16 +01:00
Enno Rehling 335f37a9ec clarify some parsing code that valgrind complains about. 2014-12-28 22:07:53 +01:00
Enno Rehling 880b965c54 Merge branch 'version-3-3'
Conflicts:
	src/build.h
2014-12-28 17:29:34 +01:00
Enno Rehling 50aa3cc444 backup with orders after the turn is done 2014-12-28 17:27:49 +01:00
Enno Rehling 975b930f44 Merge branch 'version-3-3'
Conflicts:
	src/build.h
2014-12-27 23:57:16 +01:00
Enno Rehling df3ce116a7 limit eternath gates to 1-person units, avoid crash 2014-12-27 23:51:48 +01:00
Enno Rehling f1008fa231 fix floating point exception. 2014-12-26 01:41:19 +01:00
Enno Rehling 108a909131 kill gc_add and gc_done, they were terrible ideas. 2014-12-25 22:38:01 +01:00
Enno Rehling 4e94a95835 remove dead code, move weight(unit) to unit.c 2014-12-25 19:40:40 +01:00
Enno Rehling 901c70efd9 config cleanup contd.
createunit => create_unit, everywhere.
make_undead_unit in zombies.c
2014-12-25 18:40:46 +01:00
Enno Rehling 4bb65873da shipspeed should be in ship.c, not in config.c 2014-12-25 18:16:24 +01:00
Enno Rehling 14bb27d89c Merge pull request #91 from badgerman/master
kill EnhancedQuit and other dead code
2014-12-25 12:35:09 +01:00
Enno Rehling 4f962ae999 remove dead code 2014-12-25 00:45:52 +01:00
Enno Rehling 000bdebc82 Merge remote-tracking branch 'eressea/master' 2014-12-24 23:50:55 +01:00
Enno Rehling 45cb6f07c2 Merge pull request #90 from CTD1/Destroy
Zerstöre als langer Befehl
2014-12-24 23:00:49 +01:00
Enno Rehling 3e4973db25 kill the unused EnhancedQuit feature, reducing the potential use of at_object by one more situation. 2014-12-24 16:33:21 +01:00
Enno Rehling ea035ac154 convert float values in at_object to integer where it makes sense.
this feature is only used for the embassy_muschel turn, and I am tempted to kill it entirely.
2014-12-24 16:21:01 +01:00
Enno Rehling 67881dfff4 parsing tokens when buffer is too small - skip the entire token. now with tests. 2014-12-24 15:55:55 +01:00
CTD 78c03f831b Zerstöre als langer Befehl
Zerstöre ist damit ein ganz normaler langer Befehl wie Mache oder Lerne.
2014-12-23 15:53:28 +01:00
Enno Rehling 1ba7248e48 Merge pull request #88 from badgerman/parser-static-removal
parser refactoring, tests and cleanup.
2014-12-23 13:27:35 +01:00
Enno Rehling b27491eccd move atoip out of config (small helper) and test it.
remove some unnecessary variables from laws.c
2014-12-23 09:23:37 +01:00
Enno Rehling 5ebf05f625 additional tests for the parser.
move more parsing code out of config.c
2014-12-22 16:45:56 +01:00