https://bugs.freedesktop.org/show_bug.cgi?id=81433
Priority: medium
Bug ID: 81433
Assignee: [email protected]
Summary: CppUnit 1.13.2 runner on WIN64 crashes + fix
description
Severity: minor
Classification: Unclassified
OS: Windows (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: contrib
Product: LibreOffice
We downloaded the CppUnit 1.13.2 release, and succesfully used this to run our
unit tests under Windows using Visual Studio 2012.
The runner application, however crashed, which after a little bit of debugging
I found I could easily fix myself. The problem is that the application, in the
TreeHierarchyDlg class, used the GetItemData/SetItemData to set a pointer to a
unit test. To do so, it casts the pointer to the test to DWORD. This results in
truncating the pointer, and thus in a crash. The fix is simple: cast to
DWORD_PTR instead.
It's only two calls:
SetItemData in TreeHierarchyDlg::AddTest
GetItemData in TreeHierarchyDlg::findSelectedTest
After these changes we could succesfully use the runner application.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs