Page MenuHomeWildfire Games

Refactors Preprocessor testing and adds more tests
ClosedPublic

Authored by vladislavbelov on Jan 15 2020, 10:21 PM.

Details

Reviewers
Stan
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP23405: Refactors Preprocessor testing and adds more tests
Summary

Subj.

Test Plan
  1. Apply the patch and compile tests
  2. Run tests
  3. Make sure that all Preprocessor tests are passed

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

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/1057/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/153/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1575/display/redirect

Stan added a subscriber: Stan.Jan 15 2020, 11:59 PM

Maybe add a test for division by 0 and #elif?

In D2574#107740, @Stan wrote:

Maybe add a test for division by 0 and #elif?

elif is already here.

Stan added a comment.Jan 16 2020, 12:09 AM

Oh yes, my bad.

Adds division by zero test.

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/1058/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/154/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1576/display/redirect

Stan accepted this revision.Jan 16 2020, 12:35 AM

Patch looks good test are sane and a nice addition and autobuild doesn't complain.

This revision is now accepted and ready to land.Jan 16 2020, 12:35 AM

Used CStr8 instead of std::string.

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/1059/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1577/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/155/display/redirect

Stan added a comment.Jan 16 2020, 12:46 AM

You could also assert there is no logger output?

source/third_party/ogre3d_preprocessor/tests/test_Preprocessor.h
24 ↗(On Diff #11047)

Nuke?

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/1060/display/redirect

vladislavbelov marked an inline comment as done.Jan 16 2020, 12:49 AM

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/156/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1578/display/redirect

Stan accepted this revision.Jan 16 2020, 12:54 AM
This revision was automatically updated to reflect the committed changes.