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

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

[Octave-bug-tracker] [bug #60040] [octave forge] (io) "pkg test io" fail


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60040] [octave forge] (io) "pkg test io" fails if no JRE is installed
Date: Tue, 2 Mar 2021 09:13:30 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.81

Follow-up Comment #3, bug #60040 (project octave):

Philip, that looks like a step in the correct direction.
But additionally to checking whether Octave was built with Java support, you
should probably also check if Java is available on run time.
See e.g. the BISTs in javaaddpath:
https://hg.savannah.gnu.org/hgweb/octave/file/aef9c5caedcd/scripts/java/javaaddpath.m#l108

%!testif HAVE_JAVA; usejava ("jvm")


I don't know if that syntax is available in all Octave versions you are
targeting with the io package. If it is not, you might be able to use
something like the following:

%!testif HAVE_JAVA
%! if (usejava ("jvm"))
%!   # test goes here
%! endif


AFAICT, the only difference would be that the test might show up in a
different category in the statistics (PASS instead of SKIPPED).

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60040>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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