akarasulu 2003/11/10 21:20:22
Modified: merlin/util/env/src/test/org/apache/avalon/util/env
EnvTest.java
Log:
Fixing test for OS X oddity where if variable is not
found a non-zero exit code is returned. So
an exception is thrown rather than returning a
null value. Perhaps we need to rethink this.
Revision Changes Path
1.4 +10 -2
avalon/merlin/util/env/src/test/org/apache/avalon/util/env/EnvTest.java
Index: EnvTest.java
===================================================================
RCS file:
/home/cvs/avalon/merlin/util/env/src/test/org/apache/avalon/util/env/EnvTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- EnvTest.java 2 Nov 2003 21:28:03 -0000 1.3
+++ EnvTest.java 11 Nov 2003 05:20:22 -0000 1.4
@@ -79,7 +79,15 @@
throws EnvAccessException
{
Env l_env = new Env() ;
- assertNull( l_env.getProperty( "PAT" ) ) ;
+
+ try
+ {
+ assertNull( l_env.getProperty( "PAT" ) ) ;
+ }
+ catch( Exception e )
+ {
+
+ }
if ( Env.isUnix() )
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]