# HG changeset patch # User mir3636 # Date 1486113564 -32400 # Node ID ceb8735aefb0bd41f7ef1de48a1bbdc6374385f5 # Parent 2c2e4e597eb022a6224d55f9c1d4a9caaadea4d3 fix queue_test diff -r 2c2e4e597eb0 -r ceb8735aefb0 src/parallel_execution/test/queue_test.c --- a/src/parallel_execution/test/queue_test.c Fri Feb 03 17:47:27 2017 +0900 +++ b/src/parallel_execution/test/queue_test.c Fri Feb 03 18:19:24 2017 +0900 @@ -28,8 +28,8 @@ } __code queueTest2_stub(struct Context* context) { - SingleLinkedQueue* singleLinkedQueue = &context->data[D_Queue]->Queue.queue->Queue.queue->SingleLinkedQueue; - assert(singleLinkedQueue->top->data->Task.code == C_queueTest2); + SingleLinkedQueue* singleLinkedQueue = (SingleLinkedQueue*)GearImpl(context, Queue, queue); + assert(singleLinkedQueue->top->data->Task.code == C_queueTest1); assert(singleLinkedQueue->last->data->Task.code == C_queueTest1); Task* task = &ALLOCATE(context, Task)->Task; goto queueTest2(context, @@ -43,7 +43,7 @@ } __code queueTest3_stub(struct Context* context) { - SingleLinkedQueue* singleLinkedQueue = &context->data[D_Queue]->Queue.queue->Queue.queue->SingleLinkedQueue; + SingleLinkedQueue* singleLinkedQueue = (SingleLinkedQueue*)GearImpl(context, Queue, queue); assert(singleLinkedQueue->top->data->Task.code == C_queueTest1); assert(singleLinkedQueue->last->data->Task.code == C_queueTest2); goto queueTest3(context,