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

Gathering Coverage Data During Multiprocessing

Last updated: 2019-10-24
Question:

In our software we use multiprocessing. The software entry point is always the same main-function, which calls different tasks in dependence on the given arguments.

If we want to gather coverage information about the main-function we have multiple tasks writing to the same TESTINSS.DAT-file simultaneously. This does not only lead to disordered coverage information but it also might happen, that the different processes try to access the TESTINSS.DAT-file at the same moment.

How can we assure that the multiple access to the TESTINSS.DAT-file does not lead to errors in the coverage information?

Answer:
On Windows, set the define flag VCAST_APPEND_WIN32_PID when you compile your driver. On Posix systems (unix, linux, solaris), set the define flag VCAST_APPEND_POSIX_PID when you compile your driver. The process ID will be appended to the result filename in the form TESTINSS-<pid>.DAT.
 
Article Options
2019-10-24
Views: 10