Skip to content

Commit 96b7c5e

Browse files
author
Federico Fissore
committed
MacOSX: fixed some failing tests
1 parent d259512 commit 96b7c5e

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

app/build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
<junit printsummary="yes" dir="${work.dir}" fork="true">
107107
<jvmarg value="-Djava.library.path=${java.additional.library.path}"/>
108108
<jvmarg value="-DWORK_DIR=."/>
109+
<jvmarg value="-ea"/>
109110
<classpath>
110111
<pathelement location="bin"/>
111112
<pathelement location="test-bin"/>

app/test/processing/app/AbstractWithPreferencesTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public abstract class AbstractWithPreferencesTest {
3838
public void init() throws Exception {
3939
Runtime.getRuntime().addShutdownHook(new Thread(DeleteFilesOnShutdown.INSTANCE));
4040
Base.initPlatform();
41+
Base.getPlatform().init();
4142
Preferences.init(null);
4243
Theme.init();
4344

arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public String toString() {
4141

4242
public boolean isCompatible(Platform platform) {
4343
String osName = platform.getOsName();
44+
assert osName != null;
4445
String osArch = platform.getOsArch();
46+
assert osArch != null;
4547

4648
String host = getHost();
4749

0 commit comments

Comments
 (0)