1
0
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:
Federico Fissore 2015-05-12 15:22:56 +02:00
parent d2595129c5
commit 96b7c5ec6b
3 changed files with 4 additions and 0 deletions

View File

@ -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"/>

View File

@ -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();

View File

@ -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();