avoid possible Class Not Found: junit/framework/TestCase

This commit is contained in:
Doug MacEachern 2008-05-23 05:51:54 +00:00
parent ac0c681fb7
commit e3510e0805

View File

@ -193,7 +193,10 @@ public class Shell extends ShellBase {
public void shutdown() {
this.sigar.close();
SigarTestCase.closeSigar(); //shutup dmalloc
//avoid possible Class Not Found: junit/framework/TestCase
if (System.getProperty("jni.dmalloc") != null) {
SigarTestCase.closeSigar(); //shutup dmalloc
}
super.shutdown();
}