Topic
1 reply Latest Post - ‏2012-06-28T07:59:24Z by JRCT_ganeshkumar_Patil
KirubaGopal
KirubaGopal
21 Posts
ACCEPTED ANSWER

Pinned topic providing values for _inout mode structures in stubs

‏2012-04-20T05:27:22Z |
Hi,
I'm using RTRT for C unit testing.
I have a stub in which address of a struct is passed and it is modified inside that stub function.
RTRT generates the struct as _inout parameter in DEFINE STUB section.
Can you please help me how to provide values for that stub?

Ex:#void EEL_Execute(eel_request_t _inout request_pstr)

If i define values as mentioned for _inout parameters also it is showing a warning as "A value has been omitted for request_pstr parameter" and the values are not taken.Test case is failing whatever values i give.
Updated on 2012-06-28T07:59:24Z at 2012-06-28T07:59:24Z by JRCT_ganeshkumar_Patil
  • JRCT_ganeshkumar_Patil
    10 Posts
    ACCEPTED ANSWER

    Re: providing values for _inout mode structures in stubs

    ‏2012-06-28T07:59:24Z  in response to KirubaGopal
    Hi

    Use the following format:

    STUB function_name({input parameter}, {output Parameter})

    WHere input parameter includes all the elements of the structure. If u miss one element also gives error