avoid possible Class Not Found: junit/framework/TestCase
This commit is contained in:
1 parent
ac0c681fb7
commit
e3510e0805
1 file changed
+4
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user