On -fpermissive in Windows in unit tests #3581
This commit is contained in:
parent
e54d3b9e06
commit
f1900b4887
|
@ -329,7 +329,7 @@ void EngineTestHelper::assertEvent(const char *msg, int index, void *callback, e
|
|||
|
||||
InjectionEvent *actualEvent = (InjectionEvent *)event->action.getArgument();
|
||||
|
||||
assertEqualsLM(msg, (long)expectedEvent->outputs[0], (long)actualEvent->outputs[0]);
|
||||
assertEqualsLM(msg, (uintptr_t)expectedEvent->outputs[0], (uintptr_t)actualEvent->outputs[0]);
|
||||
// but this would not work assertEqualsLM(msg, expectedPair, (long)eventPair);
|
||||
}
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ TEST(misc, testSignalExecutor2) {
|
|||
|
||||
}
|
||||
|
||||
static long prevValue = -1;
|
||||
static uintptr_t prevValue = 0;
|
||||
|
||||
static void orderCallback(void *a) {
|
||||
long value = (long)a;
|
||||
uintptr_t value = (uintptr_t)a;
|
||||
|
||||
printf("value=%d prevValue=%d\r\n", value, prevValue);
|
||||
ASSERT_TRUE(value > prevValue) << "orderCallback";
|
||||
|
|
Loading…
Reference in New Issue