Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

Test Data Settings

014_03: For a function with a structure as an argument, I cannot find the structure argument in the variable list of the "Unit Test CSV Settings" dialog.

Question:

When I try to test a function with a structure as an argument, I cannot find the structure argument in the variable list of the "Unit Test CSV Settings" dialog. How can I set the structure argument for the test?

Answer:

Some compilers don't output sufficient debug information required by CoverageMaster winAMS for testing.

You can confirm data types that cannot be set from the test CSV file to function arguments in the MPU Restrictions manuals located in the following WinAMS installation folders.

C:\WinAMS\DOC\MPU Restrictions(System-G).pdf
C:\WinAMS\DOC\MPU Restrictions(SX).pdf

As a workaround, a dummy function can be created for use as a "test driver" that calls the function to be tested. Use a dummy function (test driver) to set values to the structure argument via a global variable and call the function to be tested.

The following PDF files available for download describe how to use a dummy function as a test driver.

Using a dummy function for verification (V3.3 or later)

Using a dummy function for verification (prior to V3.3)
Note: this method can still be used for newer versions, but the above V3.3 or later method is recommended when possible.

 

Related Technical Tips Search

Other technical tips in GAIO's web site can be searched for using the links below.

Search key word link: Structure Argument
Technical Tips Google Search


Information Links