Mercurial > hg > GearsTemplate
changeset 281:ceb8735aefb0
fix queue_test
author | mir3636 |
---|---|
date | Fri, 03 Feb 2017 18:19:24 +0900 |
parents | 2c2e4e597eb0 |
children | a3448b0f0a56 |
files | src/parallel_execution/test/queue_test.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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,