Commit Graph

4216 Commits

Author SHA1 Message Date
Enno Rehling 3fa4a31d14 trying to figure out why some run_tests tests are not working 2012-05-20 03:21:38 +02:00
Enno Rehling 635ee6a99e trying to figure out why some run_tests tests are not working 2012-05-20 03:21:19 +02:00
Enno Rehling a342e846bc improved some tests
fixed some resource-related things, especially registration
2012-05-19 17:23:57 -07:00
Enno Rehling a8a8dfbbb6 registering item types is hard. 2012-05-19 16:55:03 -07:00
Enno Rehling 671e976ad6 Nobody needs to see empty messages in the CR 2012-05-19 16:54:41 -07:00
Enno Rehling 0fc37c9c59 complain properly when the orders are not readable! 2012-05-19 16:54:19 -07:00
Enno Rehling ee2709e021 fix tests 2012-05-19 22:30:57 +02:00
Enno Rehling b57db72396 fix broken tests and clear locales (badly) when clearing global stte 2012-05-19 22:21:24 +02:00
Enno Rehling c8c1d8c27d fix an odd edge-case where there is only a byte left in the destination string, but we're parsing a utf8 character. 2012-05-19 22:13:10 +02:00
Enno Rehling 71f1e35f6d fix an odd edge-case where there is only a byte left in the destination string, but we're parsing a utf8 character. 2012-05-19 13:10:19 -07:00
Enno Rehling b44737387a fix broken tests and clear locales (badly) when clearing global stte 2012-05-19 20:49:47 +02:00
Enno Rehling 8168a6c5ec new test file. this project structure needs to be redone sometime 2012-05-19 11:27:32 -07:00
Enno Rehling 7f7c883583 rt_find and it_find use new improved critbit-tree
critbit update
testing the test suite
2012-05-19 11:26:46 -07:00
Enno Rehling f47f83ceca a little bit of test coverage for rt_find 2012-05-19 00:18:23 -07:00
Enno Rehling 504a70a9c6 fix a serious issue where repeated orders were getting lost 2012-05-18 23:57:20 -07:00
Enno Rehling b95f7ec139 more strictly define what it means to be the owner of the show, and when it is transferred.
mostly copied from building_owner.
test coverage is a wonderful thing.
2012-05-18 23:20:38 -07:00
Enno Rehling 0c2531f259 remove UFL_OWNER anywhere but in save.c 2012-05-18 22:34:04 -07:00
Enno Rehling e501ed5bbd test that we are the owner of the building first. 2012-05-18 21:46:41 -07:00
Enno Rehling 57fbc7809c more strictly define what it means to be the owner of the building, and when it is transferred.
test coverage is a winderful thing.
UFL_OWNER is probably entirely useless now, must fix
2012-05-18 21:26:41 -07:00
Enno Rehling 07a75b6660 new gcc spouts more warnings, fix them. 2012-05-18 21:25:21 -07:00
Enno Rehling 0616549ea5 new gcc spouts more warnings, fix them. 2012-05-18 19:29:35 -07:00
Enno Rehling 8cd99bf88c fallback for generating building/ship names in tests, when no translations are available 2012-05-18 09:19:46 -07:00
Enno Rehling ad05ec8c53 fix an assert that was too picky 2012-05-18 02:08:29 +02:00
Enno Rehling 775e8edae1 as much as possible, replace the UFL_OWNER flag with checking the owner the canonical way. 2012-05-17 16:40:50 -07:00
Enno Rehling 95d1203594 repair feedback for not woning anything when trying to destroy. 2012-05-17 15:33:42 -07:00
Enno Rehling 3d50745d77 ship and building owners encapsulated in accessors 2012-05-17 15:23:44 -07:00
Enno Rehling ff33af3c65 ship and building owners encapsulated in accessors
tests added
2012-05-17 15:23:15 -07:00
Enno Rehling 7789e0534e implement ship-ownership transfer as a function
test the reorder_units function
2012-05-17 12:23:25 -07:00
Enno Rehling 43f5770694 Fix ship-owners when control is given 2012-05-17 10:31:58 -07:00
Enno Rehling 9cbdaea27f More tests for ships.
ship->owner is now in use, but there's an assert failing in shipspeed() during report writing.
2012-05-17 01:14:43 -07:00
Enno Rehling 94ca9a1f98 ship->owner not yet ready for primetime
better tests written
2012-05-17 00:25:47 -07:00
Enno Rehling 76ba2b9303 begin making shipowner use ship->owner. 2012-05-17 00:14:05 -07:00
Enno Rehling d12fe2dbed begin making shipowner use ship->owner.
fix a broken test caused by locale_string returning null.
2012-05-17 00:13:30 -07:00
Enno Rehling ff5dc2534e rename _log_debug to log_debug and get rid of the cumbersome #define 2012-05-16 16:56:07 -07:00
Enno Rehling 1f0d5f205e rename _log_error to log_error and get rid of the cumbersome #define 2012-05-16 16:52:12 -07:00
Enno Rehling ecac1adb1b rename _log_error to log_error and get rid of the cumbersome #define 2012-05-16 16:52:01 -07:00
Enno Rehling ecbe770fce rename _log_error to log_error and get rid of the cumbersome #define 2012-05-16 16:52:01 -07:00
Enno Rehling 14d62afb0d rename _log_warn to log_warning and get rid of the cumbersome #define 2012-05-16 15:52:37 -07:00
Enno Rehling 9065334677 eressea-pbem.de no longer exists
improve default_order generation, save memory.
2012-05-16 13:07:28 -07:00
Enno Rehling 2550f7fee3 eressea-pbem.de no longer exists 2012-05-16 13:06:50 -07:00
Enno Rehling 7b6a719a62 findparam improvements!
removed findbuildingtype from findparam
separate isparam() function that I can optimize later
2012-05-16 12:06:44 -07:00
Enno Rehling 02ab10d723 fix const correctness 2012-05-16 18:21:07 +02:00
Enno Rehling 0a6e18f34d Spiking on findparam to use critbit as a findtoken replacement 2012-05-16 09:18:25 -07:00
Enno Rehling 3c1982da4c improve logging verbosity
adapt to changes in log module
2012-05-16 09:49:28 +02:00
Enno Rehling 53d35213b6 Merge branch 'master' of gitorious.org:eressea/server
Clean up all warnings that Visual C++ didn't find

Conflicts:
	shared/src/util/umlaut.c
	shared/src/util/umlaut_test.c
2012-05-16 09:48:01 +02:00
Enno Rehling bfad64695c optimize the number of failed findparam calls a little bit 2012-05-16 09:24:12 +02:00
Enno Rehling 21a49b1660 log_rotate function to fight the increasingly huge logfiles 2012-05-16 09:11:49 +02:00
Enno Rehling b0959398d8 log library refactoring, first steps 2012-05-16 07:21:59 +02:00
Enno Rehling 64f1ceecf5 logging has a debug/info option now
fixed a bug in the umluaut_test, was not initializing the tnode.
2012-05-16 01:56:25 +02:00
Enno Rehling 116a1ee8ba remove tnode from anywhere, and use a void* instead, in preparation for a new findtoken implementation. this needs to have a good testing.
lots of warning fixes for high warning levels in visual studio also
2012-05-15 15:04:23 -07:00