unit_tests are failing under 32 bit mingw-w64 fix #905
This commit is contained in:
parent
c3562bde51
commit
f816e92671
|
@ -47,7 +47,7 @@ GTEST_API_ int main(int argc, char **argv) {
|
|||
// printTriggerDebug = true;
|
||||
|
||||
// resizeMap();
|
||||
printf("Success 20190824\r\n");
|
||||
printf("Success 20190825\r\n");
|
||||
printAllTriggers();
|
||||
// printConvertedTable();
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
|
|
|
@ -53,11 +53,19 @@ TEST(misc, cppPlainStructMemoryLayout) {
|
|||
ASSERT_EQ(0, (int)&c.field0 - (int)&c);
|
||||
}
|
||||
|
||||
static int valueWePointAt;
|
||||
|
||||
TEST(misc, cppVirtualStructMemoryLayout) {
|
||||
TestChildWithVirtual c;
|
||||
|
||||
int * valuePointer = &valueWePointAt;
|
||||
int pointerSize = sizeof(valuePointer);
|
||||
|
||||
|
||||
// '4' in case of 32 bit target
|
||||
// '8' in case of 64 bit target
|
||||
// this '8' is totally compiler and platform dependent
|
||||
#define MAGIC_VTABLE_SIZE 8
|
||||
int MAGIC_VTABLE_SIZE = pointerSize;
|
||||
|
||||
// validate field initializers just for fun
|
||||
ASSERT_EQ(540, c.field0);
|
||||
|
|
Loading…
Reference in New Issue