Mercurial > octave
diff libinterp/corefcn/toplev.cc @ 22751:e078f5607762 stable
Fix failing BIST test in toplev.cc (bug #49575).
* toplev.cc: Change BIST tests to check that __octave_config_info__ for
"version" returns the same string as OCTAVE_VERSION.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 10 Nov 2016 20:30:00 -0800 |
parents | ed1b0d5fa97c |
children | 57e82b74f89b e9a0469dedd9 |
line wrap: on
line diff
--- a/libinterp/corefcn/toplev.cc Sat Nov 05 14:50:15 2016 +0530 +++ b/libinterp/corefcn/toplev.cc Thu Nov 10 20:30:00 2016 -0800 @@ -667,12 +667,12 @@ /* %!assert (ischar (__octave_config_info__ ("version"))) +%!assert (__octave_config_info__ ("version"), OCTAVE_VERSION ()) %!test %! x = __octave_config_info__ (); %! assert (isstruct (x)); %! assert (! isempty (x)); - -%!assert (__octave_config_info__ ("fftw_version"), __octave_config_info__ ("fftwf_version")) +%! assert (x.version, OCTAVE_VERSION ()); %!error __octave_config_info__ (1, 2) */