On 8 Feb 2005, <[EMAIL PROTECTED]> wrote:

>   return code checking on rpm.

In the unlikely event that rpm is ever going to be used on OpenVMS,
we should use Execute#isFailure instead of comparing the exit code to
0 directly.

>   How do we test this?

We don't test much of the forking native commands at all, if anything.

Unset PATH and run the task?  This should make the OS return with an
error even if rpm is installed.  Uhm, no, exec is going to throw an
exception instead of returning non-0.

Write our own rpm and put it at the front of PATH?  Sounds ugly.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to