Merge pull request #2330 from mcginty/dexmaker-workaround
workaround dexmaker bug in test casespull/1/head
commit
ac3b3673b9
@ -0,0 +1,16 @@
|
|||||||
|
package org.thoughtcrime.securesms;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.test.InstrumentationTestCase;
|
||||||
|
|
||||||
|
public class TextSecureTestCase extends InstrumentationTestCase {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setUp() throws Exception {
|
||||||
|
System.setProperty("dexmaker.dexcache", getInstrumentation().getTargetContext().getCacheDir().getPath());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Context getContext() {
|
||||||
|
return getInstrumentation().getContext();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue