Discussion:
Test Library: Program Execution Monitor output
klapshin
2002-12-11 22:43:59 UTC
Permalink
Hello,

I just plugged program execution monitor in my code and there are
certain things I don't really like.

First of all is not it odd to see a contradictory messages like:

---------------------------
no errors detected

**** error return code 1
********** errors detected; see standard output for details
***********
---------------------------

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.

Another concern is that I have no control on return codes in case of
exceptions and runtime errors.

For instance in my company all programs have to return 1 in case of
failure (and 0 on success). Other return codes are no-no. I am sure there are zillions
of different environments with different, often contradictory
requirements for error handling.

The point I am trying to make is that it is not that difficult to
make Monitor more flexible, and it will increase its value
tremendously.

The ultimate solution would be giving user an opportunity to supply
error-handling function which will print out whatever it want to, and
return desired return code.

Best regards,
Kirill Lapshin


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/EbFolB/TM
---------------------------------------------------------------------~->

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-***@yahoogroups.com>


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Tom Matelich
2002-12-12 14:53:38 UTC
Permalink
Post by klapshin
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.
-----------------------------------------------------------------------

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/EbFolB/TM
---------------------------------------------------------------------~->

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-***@yahoogroups.com>


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
klapshin
2002-12-12 17:10:06 UTC
Permalink
Post by Tom Matelich
Post by klapshin
that the way to control is quite an awkward one. I would like to
have some internal control, probably overwritable via environment
variable.
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


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/EbFolB/TM
---------------------------------------------------------------------~->

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-***@yahoogroups.com>


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Gennadiy E. Rozental
2002-12-13 10:43:47 UTC
Permalink
Post by klapshin
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.
What kind of internal control you need: compile time, runtime time?
And how it will be more convenient than existent one?
Post by klapshin
Another concern is that I have no control on return codes in case
of exceptions and runtime errors.
For instance in my company all programs have to return 1 in case of
failure (and 0 on success). Other return codes are no-no. I am
sure there are zillions
of different environments with different, often contradictory
requirements for error handling.
The current return codes scheme seems to fit in majority of the
cases. Would you need something different, as you mention in your
other post, you could always use execution monitor directly.

Regards,
Gennadiy.

P.S. Be aware of upcoming changes in the execution monitor. Check
out cvs and main list for the post: "[Test] revision one".



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/EbFolB/TM
---------------------------------------------------------------------~->

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-***@yahoogroups.com>


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Loading...