bugGNU Octave - Bugs: bug #38679, make check fails on stemleaf.m


bug #38679: make check fails on stemleaf.m

Submitted by:  Michael Godfrey <godfrey>
Submitted on:  Sun 07 Apr 2013 05:57:39 AM UTC  
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Michael GodfreyOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sun 14 Jul 2013 12:53:17 AM UTC, comment #6:


It is pretty likely that you corrected the original error.
But, it has bee several weeks since stemleaf stopped failing
during make check. Something else had the side effect of
allowing it to work.

In any case, the build with you patch runs make check

Michael Godfrey <godfrey>
Project Member
Sat 13 Jul 2013 11:29:35 PM UTC, comment #5:

'make check' should now properly make it pass the stemleaf.m tests. Try updating to this changeset http://hg.savannah.gnu.org/hgweb/octave/rev/0d5d3e53255f.

Rik <rik5>
Project Administrator
Tue 18 Jun 2013 11:07:47 PM UTC, comment #4:

Sorry. Spoke too soon.
As of build a few minutes ago, fail
in make check in stemleaf is back.

Michael Godfrey <godfrey>
Project Member
Tue 18 Jun 2013 06:54:37 PM UTC, comment #3:

make check now runs without an error
in stemleaf. However, since there does not
appear to have been any relevant patch applied
it may be that the problem went away due to a
change in other tests which run prior to stemleaf.

In any case, since the problem is gone this
report could be closed.

Michael Godfrey <godfrey>
Project Member
Sun 07 Apr 2013 06:37:23 PM UTC, comment #2:

Part of the problem is that warnings are not cleared before starting testing so the lastwarn() function call can contain garbage from previous tests. This is the problem reported in bug #35850 which I have added as a dependency here.

I haven't fixed and close the first report because there is something else going on with function contexts. Sometimes even when a warning has been issued with warning(), lastwarn() reports the previous warning. I think this must have something to do with function stacks, but haven't concluded where yet.

Rik <rik5>
Project Administrator
Sun 07 Apr 2013 02:24:26 PM UTC, comment #1:

It is the execution of the test in copyobj.m
that causes the %!warning test in stemleaf.m to fail.

In copyobj.m I changed line 108 from

%!testif HAVE_MAGICK


%!testif HAVE_MAGICKxxx

Making this change causes the test in stemleaf.m to
run correctly. There are about 30 files with tests
between copyobj and stemleaf, but something affects the
environment for stemleaf so that the #!warning test
%!warning <X truncated to integer values> tmp = stemleaf ([0 0.5 1],"");


Michael Godfrey <godfrey>
Project Member
Sun 07 Apr 2013 05:57:39 AM UTC, original submission:

Since the function stemleaf.m was introduced one of its
tests has failed when running make check. If the tests
are run by:
test stemleaf

the tests all pass.

I found a possibly useful fact about this. If the Octave
system was built without ImageMagick and therefore the variable
HAVE_MAGICK is not set in make check, the stemleaf test passes.
There are 2 references to HAVE_MAGICK in the make check tests:
imread.m and copyobj.m. I am pretty sure that the cause of the
stemleaf failure is something left over from the test in copyobj.

When I asked Rik about this problem he said there was something
strange happening in the make check process. I hope that this
will be a useful clue.


Michael Godfrey <godfrey>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by godfrey (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 13 Jul 2013 11:29:35 PM UTCrik5StatusNone=>Fixed
    Sun 07 Apr 2013 06:27:24 PM UTCrik5Dependencies-=>Depends on bugs #35850

    Back to the top

    Powered by Savane 3.1-cleanup1