Skip to content

Commit 4eee3ac

Browse files
committed
Warn/workaround Octave 11.x multiple inheritance bug
... that complains of duplicate method definitions.
1 parent 0e5342c commit 4eee3ac

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_mll_main.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
tests{end+1} = 't_varGen_case9';
3636
tests{end+1} = 't_varGen_case39';
3737

38+
%% warning for bug in Octave 11.x
39+
is_octave11 = have_feature('octave') && floor(have_feature('octave', 'vnum')) == 11;
40+
if is_octave11
41+
persistent show_octave11_warning_once;
42+
if isempty(show_octave11_warning_once)
43+
show_octave11_warning_once = 1;
44+
warning(sprintf('\n###############################################################################\n# GNU Octave 11.x has a bug (https://savannah.gnu.org/bugs/index.php?68227) #\n# that results in lots of warnings when running MATPOWER. One workaround is #\n# to turn off all warnings using: warning off #\n# (applied automatically and temporarily for test_most) #\n###############################################################################\n'));
45+
end
46+
w = warning();
47+
warning('off');
48+
end
49+
3850
%% run the tests
3951
all_ok = t_run_tests( tests, verbose );
4052

0 commit comments

Comments
 (0)