Mercurial > octave
diff libinterp/octave-value/ov-typeinfo.cc @ 23405:32ec90068be5
use %!testif runtime tests to properly skip java tests
* ov-class.cc, ov-java.cc, ov-typeinfo.cc, fieldnames.m, methods.m,
javachk.m, usejava.m: Use runtime test in %!testif line to skip if
JVM is not available instead of checking inside the test itself. This
way the test will be properly reported as skipped instead of passed.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 17 Apr 2017 17:44:56 -0400 |
parents | 092078913d54 |
children | e4fca7cc471c |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-typeinfo.cc Mon Apr 17 21:28:55 2017 +0200 +++ b/libinterp/octave-value/ov-typeinfo.cc Mon Apr 17 17:44:56 2017 -0400 @@ -681,10 +681,7 @@ %! cvar = onCleanup (@() ""); %! assert (typeinfo (cvar), "onCleanup"); -%!testif HAVE_JAVA -%! if (! usejava ("jvm")) -%! return; -%! endif +%!testif HAVE_JAVA; usejava ("jvm") %! x = javaObject ("java.lang.StringBuffer"); %! assert (typeinfo (x), "octave_java");