Lua unit tests crash on win32/VS2008 build
Bug #590472 reported by
Jari Hautio
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Jari Hautio |
Bug Description
Running Lua unit tests ts.wmf crashes in Flag tests when built with Visual Studio 2008 (Win32).
Seems like Luna implementation has problems with virtual base classes and multiple inheritance.
Related branches
lp:~jarih/widelands/fix-lua-msvc
- SirVer: Approve
-
Diff: 752 lines (+545/-60)9 files modifiedCMakeLists.txt (+10/-3)
src/CMakeLists.txt (+2/-0)
src/scripting/CMakeLists.txt (+6/-0)
src/scripting/luna.h (+2/-2)
src/scripting/luna_impl.h (+95/-55)
src/scripting/scripting.cc (+2/-0)
src/scripting/test/CMakeLists.txt (+51/-0)
src/scripting/test/scripting_test_main.cc (+23/-0)
src/scripting/test/test_luna.cc (+354/-0)
Changed in widelands: | |
assignee: | nobody → Jari Hautio (jarih) |
status: | New → In Progress |
Changed in widelands: | |
status: | In Progress → Invalid |
status: | Invalid → Incomplete |
status: | Incomplete → Fix Committed |
To post a comment you must log in.
I created a unit test using boost unit test framework to isolate the problem (in lp:~jarih/widelands/fix-lua-msvc) and interestingly, also GCC build will crash in the unit test. Same fix applied to both platforms.