Fixes tests bundle stopping.

cusax-fix
Damian Minkov 15 years ago
parent 7d627b5d52
commit 2b9fc76e39

@ -29,7 +29,8 @@ org.osgi.framework.system.packages.extra= \
sun.net.dns; \
sun.security.action; \
sun.security.pkcs11; \
sun.reflect;
sun.reflect; \
org.xbill.DNS;
#

@ -188,7 +188,18 @@ public void frameworkEvent(FrameworkEvent event){
//"felix.embedded.execution" property to true
//we could therefore now System.exit() with a code
//indicating whether or not all unit tests went wrong
System.exit(errCount > 0? -1: 0);
// After updating to Felix 3.2.2, System.exit locks
// the tests and it never stop, so it has to be removed
// or in new thread.
new Thread(new Runnable()
{
public void run()
{
System.exit(errCount > 0? -1: 0);
}
}).start();
}
}
});

Loading…
Cancel
Save