Testing Main Functions

Component Testing for C

You can use the Component Testing feature to test C language main functions. To do so, you must rename those functions.

Example

#ifdef ATTOL

int test_main (int argc, char** argv)

#else

int main (int argc, char** argv)

#endif

{

...

}

 

If you are running an runtime analysis feature on the Component Testing test node, you can also use the -rename command line option to rename the main function name.

See the command line interface pages of Studio reference section in the TOneTest Embedded Reference category of the help..