mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
MacOSX: fixed some failing tests
This commit is contained in:
@ -106,6 +106,7 @@
|
|||||||
<junit printsummary="yes" dir="${work.dir}" fork="true">
|
<junit printsummary="yes" dir="${work.dir}" fork="true">
|
||||||
<jvmarg value="-Djava.library.path=${java.additional.library.path}"/>
|
<jvmarg value="-Djava.library.path=${java.additional.library.path}"/>
|
||||||
<jvmarg value="-DWORK_DIR=."/>
|
<jvmarg value="-DWORK_DIR=."/>
|
||||||
|
<jvmarg value="-ea"/>
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="bin"/>
|
<pathelement location="bin"/>
|
||||||
<pathelement location="test-bin"/>
|
<pathelement location="test-bin"/>
|
||||||
|
@ -38,6 +38,7 @@ public abstract class AbstractWithPreferencesTest {
|
|||||||
public void init() throws Exception {
|
public void init() throws Exception {
|
||||||
Runtime.getRuntime().addShutdownHook(new Thread(DeleteFilesOnShutdown.INSTANCE));
|
Runtime.getRuntime().addShutdownHook(new Thread(DeleteFilesOnShutdown.INSTANCE));
|
||||||
Base.initPlatform();
|
Base.initPlatform();
|
||||||
|
Base.getPlatform().init();
|
||||||
Preferences.init(null);
|
Preferences.init(null);
|
||||||
Theme.init();
|
Theme.init();
|
||||||
|
|
||||||
|
@ -41,7 +41,9 @@ public abstract class HostDependentDownloadableContribution extends Downloadable
|
|||||||
|
|
||||||
public boolean isCompatible(Platform platform) {
|
public boolean isCompatible(Platform platform) {
|
||||||
String osName = platform.getOsName();
|
String osName = platform.getOsName();
|
||||||
|
assert osName != null;
|
||||||
String osArch = platform.getOsArch();
|
String osArch = platform.getOsArch();
|
||||||
|
assert osArch != null;
|
||||||
|
|
||||||
String host = getHost();
|
String host = getHost();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user