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'.

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.
Advanced search
2019-10-02 Testing Global Variables
Question: When are global variables tested? Answer: There are differences between expected results on function parameters/returns and globals, when applied to a list of expected results: For a function stub. It is when the stub function is called. For a global the test harness does not...
2019-10-02 rating Views: 500
2019-10-02 Actual Value in User Code
Question: When I have an expected result in user code, the report only shows matched or fail. When it fails I need to know the actual value of the result. Answer: There is an undocumented test harness function which allows this to happen. As an example we have in file uut.c the function...
2019-10-02 rating Views: 410
2019-10-02 Error: Call to malloc failed. Memory exhausted.
Question: Why does my test fail with an error indicating memory exhausted? Answer: When a pointer is used that points to a structure outside of the area that VectorCAST has allocated, this causes a behavior that is compiler dependent and thus unpredictable because the heap allocation...
2019-10-02 rating Views: 347
2019-10-02 Test Harness Works with MinGW But Not with IAR
Question: Why does a test harness work with MinGW and crash with IAR? Answer: VectorCAST does not ensure the test cases are run time safe with C/C++. The C/C++ data types do not give enough information to allow it to do that. Two examples are pointers to unconstrained arrays and casting...
2019-10-02 rating Views: 185
2019-12-05 VectorCAST Error while Parsing Restrict Keyword
Question: Why do I get a parse error in the form of error: expected a ")" void *memcpy(void *restrict DST, const void *restrict SRC, size_t LEN) attribute(format(memcpy,1,2,3))); while compiling? Answer: It’s likely that the failure appears because VectorCAST has not been told...
2019-12-05 rating Views: 83
2019-10-02 Value Definition in Parameter Tree Not Possible
Question: Why am I not allowed to set a my desired negative value in the parameter tree? Answer: VectorCAST needs definitions for INT_MIN and INT_MAX to work out the range of an integer on the target system. These defines are in limits.h. If a customer project has also a limits.h it may...
2019-10-02 rating Views: 81
2019-10-02 SCR Files Triggered Script Checker of Antivirus Program
When installing VectorCAST it can be important to have the virus checker disabled. The presence of .scr files in our install can trip the script blocker of the virus checker. This may result in access denied messages.
2019-10-02 rating Views: 74
2019-12-10 TRACE32 Returns a Syntax Error When Loading the Environment or Reports Cannot Find a File
Issue: TRACE32 returns a syntax error when loading the environment or reports it cannot find a file. Solution: This problem is one and the same. Basically, our execution script depends on the %VECTORCAST_DIR% environment variable to execute properly. This environment variable points to the...
2019-12-10 rating Views: 62
2019-10-31 VectorCAST Handling Exceptions
Question: How does VectorCAST handle exceptions in the code? Answer: Do you use exception specifications in your source code? If your function has an exception specification (e.g. void foo() throw(int)), then a <<throw>> node will appear allowing you to set an expected value....
2019-10-31 rating Views: 60
2019-11-07 Source File or User Code has Changed; Rebuild Environment Before Instrumenting for Code Coverage
Issue: While building a new environment, I see a dialog pop-up indicating that The source file <some fully qualified path to a file in the source tree> or user code for that unit has changed since the environment was built. Rebuild the environment before instrumenting for code...
2019-11-07 rating Views: 54