You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ma...@apache.org on 2009/10/09 12:32:33 UTC
svn commit: r823507 -
/incubator/ace/trunk/test/src/org/apache/ace/test/osgi/dm/TestActivatorBase.java
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) {