incubator-ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r823507 - /incubator/ace/trunk/test/src/org/apache/ace/test/osgi/dm/TestActivatorBase.java
Date Fri, 09 Oct 2009 10:32:33 GMT
Author: marrs
Date: Fri Oct  9 10:32:32 2009
New Revision: 823507

URL: http://svn.apache.org/viewvc?rev=823507&view=rev
Log:
Added some extra output for analyzing the current problem with the last failing test case.

Modified:
    incubator/ace/trunk/test/src/org/apache/ace/test/osgi/dm/TestActivatorBase.java

Modified: incubator/ace/trunk/test/src/org/apache/ace/test/osgi/dm/TestActivatorBase.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/test/src/org/apache/ace/test/osgi/dm/TestActivatorBase.java?rev=823507&r1=823506&r2=823507&view=diff
==============================================================================
--- incubator/ace/trunk/test/src/org/apache/ace/test/osgi/dm/TestActivatorBase.java (original)
+++ incubator/ace/trunk/test/src/org/apache/ace/test/osgi/dm/TestActivatorBase.java Fri Oct
 9 10:32:32 2009
@@ -102,7 +102,8 @@
                 testng.run();
             }
             else {
-                fail(testng, "Service(s) never started.");
+                int waitingFor = 1 - m_semaphore.availablePermits();
+                fail(testng, "Service(s) never started. Still waiting for " + waitingFor
+ " services.");
             }
         }
         catch (InterruptedException ie) {
@@ -149,6 +150,7 @@
     }
 
     public void started(Service svc) {
+        System.out.println("Started service " + svc);
         m_semaphore.release();
     }
 
@@ -156,6 +158,8 @@
     }
 
     public void stopped(Service svc) {
+        // this is weird
+        System.out.println("Stopped service " + svc);
     }
 
     public void stopping(Service svc) {



Mime
View raw message