vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

Exit Test Harness Cleanly when Calling a Stubbed Function

Last updated: 2019-10-31
Question:
Is there a way to make VectorCAST exit the test harness cleanly when calling a stubbed function?
Answer:

Yes, in configure stubs user code (Environment | Configure Stubs | Edit) for the stubbed function, insert the following code:
 

void VCAST_driver_termination(int status, int eventCode);
void vCAST_SET_HISTORY (int VC_U, int VC_S);
void vCAST_STORE_GLOBAL_ASCII_DATA (void);
extern unsigned short VCAST_GLOBALS_DISPLAY;
if (VCAST_GLOBALS_DISPLAY != vCAST_EACH_EVENT) {
  vCAST_STORE_GLOBAL_ASCII_DATA();
}
vCAST_SET_HISTORY(0,0);
VCAST_driver_termination(0,0);

Note:
If you would like to set an expected value for the parameter passed to the call to exit, you will need to enter the above user code in the End Of Stubs user code section.
 
Article Options
2019-10-31
Views: 9
Rate this article: