You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/14 14:55:29 UTC
svn commit: r804205 -
/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestGroup.java
Author: mturk
Date: Fri Aug 14 12:55:28 2009
New Revision: 804205
URL: http://svn.apache.org/viewvc?rev=804205&view=rev
Log:
nobody group isn't present always
Modified:
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestGroup.java
Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestGroup.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestGroup.java?rev=804205&r1=804204&r2=804205&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestGroup.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestGroup.java Fri Aug 14 12:55:28 2009
@@ -154,17 +154,21 @@
public void testGroupNoMembers()
throws Exception
{
- Group g;
+ try {
+ Group g;
- if (!Os.TYPE.contains(OsType.WINDOWS)) {
- g = Group.get("nobody");
- assertNotNull("Group", g);
- assertTrue("Local", g.IsLocal());
+ if (!Os.TYPE.contains(OsType.WINDOWS)) {
+ g = Group.get("nobody");
+ assertNotNull("Group", g);
+ assertTrue("Local", g.IsLocal());
- UserIterator members = g.getMembers();
+ UserIterator members = g.getMembers();
- assertNotNull("Iterator", members);
- assertFalse("Members", members.hasNext());
+ assertNotNull("Iterator", members);
+ assertFalse("Members", members.hasNext());
+ }
+ } catch (Exception e) {
+ // Ignore test
}
}