octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52627] Failing BIST tests on Mac OS X


From: Sebastian
Subject: [Octave-bug-tracker] [bug #52627] Failing BIST tests on Mac OS X
Date: Thu, 1 Feb 2018 17:30:52 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6

Follow-up Comment #30, bug #52627 (project octave):

Thanks Rik! Your fix for TMP works... the last issues that I see are in
ov-java.cc-tst:

jver = strsplit (javaMethod ("getProperty", "java.lang.System",
"java.version"), ".");
assert (all( isfinite (str2double (jver))));
!!!!! test failed
jver(2): out of bound 1


This is due to Java 9 calling itself "9" instead of "1.9". We could do

ver = javaMethod ("getProperty", "java.lang.System", "java.version");
assert (isfinite (str2double (jver)));


Furthermore

n = javaObject ("java.lang.Integer", 1.35);
assert (n.compareTo (0), 1);
assert (n.compareTo (1), 0);
assert (n.compareTo (2), -1);
!!!!! test failed
[java] java.lang.ClassCastException: java.base/java.lang.Double cannot be cast
to java.base/java.lang.Integer


fails but

assert (n.compareTo (int32(0)), 1);


would work. Not sure why this was no issue before.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52627>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]