Page MenuHomeWildfire Games

Fix a Template Manager test
ClosedPublic

Authored by fatherbushido on Oct 21 2017, 2:48 PM.

Details

Summary

test_load is disabled by default (it's verbose and perhaps it's a bit long).
But currently the test doesn't work.
As it's disabled, it's often forgotten I guess.
As suggested by @Sandarac, we need to take care of mods/mod.
The other part of Sandarac's patch are not relevant anymore since @leper commited rP20246.

Test Plan

-

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

fatherbushido created this revision.Oct 21 2017, 2:48 PM
Vulcan added a subscriber: Vulcan.Oct 21 2017, 2:52 PM

Build is green

Updating workspaces...
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...

http://jenkins-master:8080/job/phabricator/2133/ for more details.

Executing section Default...
Executing section Source...
Executing section JS...
Executing section XML GUI...

http://jenkins-master:8080/job/phabricator_lint/604/ for more details.

Build is green

Updating workspaces...
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...

http://jenkins-master:8080/job/phabricator/2134/ for more details.

Executing section Default...
Executing section Source...
Executing section JS...
Executing section XML GUI...

http://jenkins-master:8080/job/phabricator_lint/605/ for more details.

(one can also nuke it, or make it all mod compatible)
(enabling it by default and only displaying error is also an option but it could be bad for other mods)

elexis accepted this revision.Oct 21 2017, 4:35 PM
elexis added a subscriber: elexis.

Can confirm that test_load_all spams the error reported in that ticket, if _DISABLED is removed from the function name and that the provided patch fixes the issue.

source/simulation2/tests/test_CmpTemplateManager.h
253 ↗(On Diff #3912)

Can we remove this line and enable the test? Doesn't throw errors on my end, so if that is committed too I wouldn't complain.

This revision is now accepted and ready to land.Oct 21 2017, 4:35 PM
fatherbushido added inline comments.Oct 22 2017, 5:34 PM
source/simulation2/tests/test_CmpTemplateManager.h
253 ↗(On Diff #3912)

I'd prefer let someone else do it (even if the temptation is big) as I don't know if it's good to launch that test with mods (I should know but I am lazy).
(someone else can be me a next day too).

This revision was automatically updated to reflect the committed changes.