RE: [Boost-Users] Test Library: Program Execution Monitor output
I don't really need this "no errors detected" message. Looking into code I found a way to turn it off -- I have to define an environment variable. I have a way to control this behavior. This is good. Bad news though that the way to control is quite an awkward one. I would like to have some internal control, probably overwritable via environment variable.
In case you hadn't though of this workaround: if(getenv("VAR") == 0) putenv("VAR=defaultvalue"); Not to say a programmatic method is not worthwhile. ----------------------------------------------------------------------- DISCLAIMER: Information contained in this message and/or attachment(s) may contain confidential information of Zetec, Inc. If you have received this transmission in error, please notify the sender by return email. -----------------------------------------------------------------------
that the way to control is quite an awkward one. I would like to have some internal control, probably overwritable via environment variable.
In case you hadn't though of this workaround:
if(getenv("VAR") == 0) putenv("VAR=defaultvalue");
Not to say a programmatic method is not worthwhile.
I was thinking of this way, and had to reject it. First of all putenv is not an ANSI C function. Second, it is still quite far from a clean soultion. In fact after I posted original question, I found a good way to solve this problem -- boost::execution_monitor. It looks like an ultimate solution to all my problems. Have not tried it yet though, but will certainly do it soon. One can think of program execution manager as a mere example how to use a boost::execution_monitor. - Kirill
participants (2)
-
klapshin <klapshin@yahoo.com>
-
Tom Matelich