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