empserver/tests
Markus Armbruster 589bc1ed1a neweff production work: Fix crash for sea sector
The work required for building sea sectors is zero in sect.config.
When a deity runs neweff or production on a sea sector, e.g. with
"neweff *", buildeff() divides by zero.  Same when a player or deity
runs work with an engineer in a sea sector.  Broken in commit
2ffd7b948 "config: Make work to build sectors configurable", v4.4.0

Fix buildeff() to avoid the division.  Change the required work to 100
in sect.config for good measure.

Cover deity use of neweff and production in tests/update.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2021-01-17 21:24:29 +01:00
..
actofgod subs: Maintain plane and land unit fortification invariant 2021-01-05 10:40:34 +01:00
bridgefall relations: Move relations state from struct natstr to relatstr 2017-08-06 20:09:22 +02:00
build Spell harbor consistently 2017-08-07 10:08:31 +02:00
empdump config: Make product work independently configurable 2021-01-17 21:24:29 +01:00
fairland fairland: Tweak rural iron, fert, oil for simplicity 2021-01-17 21:24:28 +01:00
files relations: Move relations state from struct natstr to relatstr 2017-08-06 20:09:22 +02:00
fire damage: Shield embarked planes and land units from sector damage 2021-01-05 10:41:28 +01:00
info tests/info: New; checks info and code agree on commands 2014-01-06 20:50:06 +01:00
load-tend load: Factor out plane_loadable(), land_loadable() 2021-01-05 07:25:18 +01:00
navi-march edit: Fix fortification limit of embarked planes and land units 2021-01-05 10:38:57 +01:00
retreat damage: Shield embarked planes and land units from sector damage 2021-01-05 10:41:28 +01:00
smoke Correct spelling as one word and as two words 2017-08-07 10:08:31 +02:00
torpedo Correct spelling as one word and as two words 2017-08-07 10:08:31 +02:00
update neweff production work: Fix crash for sea sector 2021-01-17 21:24:29 +01:00
version neweff production work: Fix crash for sea sector 2021-01-17 21:24:29 +01:00
actofgod-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
bridgefall-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
build-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
empdump-test tests/empdump: Fix to honor "make check-accept" 2021-01-05 10:41:35 +01:00
fairland-test fairland: Make actual island sizes fair 2021-01-05 10:41:37 +01:00
files-test tests/files tests/fairland: Check stderr and exit status 2015-02-01 16:52:59 +01:00
fire-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
info-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
load-tend-test tests/load-tend: New; exercises load and tend commands 2021-01-05 07:25:15 +01:00
navi-march-test navigate: Require all ships to start in the same sector 2015-02-28 16:13:14 +01:00
normalize.pl Make: Support shallow git clones for testing 2017-09-02 17:51:37 +02:00
retreat-test tests/retreat: Cover trains 2015-03-02 08:20:48 +01:00
smoke-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
test-common.sh tests: Make "make check-accept" accept new files 2021-01-05 10:41:35 +01:00
torpedo-test tests/torpedo: New; exercises torpedo command 2015-03-02 08:20:52 +01:00
update-test tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
version-test tests/version: New; exercises config introspection commands 2017-08-06 14:03:55 +02:00