bugGNU Octave - Bugs: bug #46239, MXE Octave: failure in BIST of text

 
 

bug #46239: MXE Octave: failure in BIST of text

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Sat 17 Oct 2015 08:23:41 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Feb 2016 10:33:13 AM UTC, comment #5: 

Checking this bug again, it was caused by a old version of text.m in the search path (sorry...).

Please close this report as "Invalid". Thanks.

Avinoam Kalma <avinoam>
Group Member
Thu 22 Oct 2015 10:36:42 PM UTC, comment #4: 

That's going to be hard to debug.  My guess is that it is one of the get/set statements, but to find out exactly you would need to comment out some of the tests, re-run _run_test_suite_ and see if it generates a failure, and then comment out more tests if the bug persists until you can narrow it down.

Note that there was a recent change to text.m


changeset:   20526:ecca28364445
user:        Rik <rik@octave.org>
date:        Tue Sep 29 06:29:32 2015 -0700
summary:     text.m: Allow '[]' to indicate blank line in multi-line cellstrings (bug #43017).



Rik <rik5>
Group administrator
Mon 19 Oct 2015 08:44:32 PM UTC, comment #3: 

Here are the relevant line from fntest.log. I see the error,
but I do not know which test caused this error:


>>>>> processing C:\Octave\Octave-4.1.0+\share\octave\4.1.0+\m\plot\appearance\text.m
***** test
 hf = figure ("visible", "off");
 unwind_protect
   ## Single object with one line
   h = text (0.5, 0.5, "single object with one line");
   obs = get (h, "string");
   assert (class (obs), "char");
   assert (obs, "single object with one line");

   ## Single object with multiple lines
   h = text (0.5, 0.3, ["char row 1"; "char row 2"]);
   obs = get (h, "string");
   assert (class (obs), "char");
   assert (obs, ["char row 1"; "char row 2"]);

   ## Multiple objects with single line
   h = text ([0.1, 0.1], [0.3, 0.4], "two objects with same string");
   assert (class (get (h(1), "string")), "char");
   assert (class (get (h(2), "string")), "char");
   assert (get (h(1), "string"), "two objects with same string");
   assert (get (h(2), "string"), "two objects with same string");

   ## Multiple objects with multiple lines
   h = text ([0.7, 0.7], [0.3, 0.4], ["string1"; "string2"]);
   assert (class (get (h(1), "string")), "char");
   assert (class (get (h(2), "string")), "char");
   assert (get (h(1), "string"), "string1");
   assert (get (h(2), "string"), "string2");

   ### Tests repeated with cell input ###
   clf;

   ## Single object with one line
   h = text (0.5, 0.5, {"single object with one line"});
   obs = get (h, "string");
   assert (class (obs), "cell");
   assert (obs, {"single object with one line"});

   ## Single object with multiple lines
   h = text (0.5, 0.3, {"cell2str (1,1)", "cell2str (1,2)";
                        "cell2str (2,1)", "cell2str (2,2)"});
   obs = get (h, "string");
   assert (class (obs), "cell");
   assert (obs, {"cell2str (1,1)"; "cell2str (2,1)";
                 "cell2str (1,2)"; "cell2str (2,2)"});

   ## Single object with multiple lines including empty cell
   h = text (0.5, 0.9, {"Line1"; []; "Line3"});
   obs = get (h, "string");
   assert (class (obs), "cell");
   assert (obs, {"Line1"; ""; "Line3"});

   ## Multiple objects with single line
   h = text ([0.1, 0.1], [0.5, 0.6], {"two objects with same cellstr"});
   assert (class (get (h(1), "string")), "cell");
   assert (class (get (h(2), "string")), "cell");
   assert (get (h(1), "string"), {"two objects with same cellstr"});
   assert (get (h(2), "string"), {"two objects with same cellstr"});

   ## Multiple objects with same multi-line string which has empty cell
   ## NOTE: Matlab does not support this syntax
   h = text ([0.7, 0.7], [0.3 0.5], {"Line1"; []; "Line3"});
   assert (class (get (h(1), "string")), "cell");
   assert (class (get (h(2), "string")), "cell");
   assert (get (h(1), "string"), {"Line1"; ""; "Line3"});
   assert (get (h(2), "string"), {"Line1"; ""; "Line3"});

   ## Multiple objects with multiple lines
   h = text ([0.1, 0.1], [0.7, 0.8], {"cellstr1", "cellstr2"});
   assert (class (get (h(1), "string")), "char");
   assert (class (get (h(2), "string")), "char");
   assert (get (h(1), "string"), "cellstr1");
   assert (get (h(2), "string"), "cellstr2");

   ## Test special keyword processing
   h = text (0.5, 0.5, "default");
   assert (get (h, "string"), "default")
   h = text (0.5, 0.5, "factory");
   assert (get (h, "string"), "factory")

 unwind_protect_cleanup
   close (hf);
 end_unwind_protect
!!!!! test failed
invalid conversion from real matrix to real scalar


Avinoam Kalma <avinoam>
Group Member
Mon 19 Oct 2015 03:08:26 PM UTC, comment #2: 

Look for the file fntests.log and search for the word 'fail'.  That will give more information about why the text.m tests is failing.

Rik <rik5>
Group administrator
Sat 17 Oct 2015 10:09:08 PM UTC, comment #1: 

No, sorry.
With an -enable-windows-64 cross-build I see 3 FAILS in axis.m, lscov.m and assert.m, all related to tolerances, during _run_test_suite_.

Philip Nienhuis <philipnienhuis>
Group Member
Sat 17 Oct 2015 08:23:41 PM UTC, original submission:  


running


__run_test_suite__


On Win7 with MXE-Octave I get failure in text.m:


plot\appearance\text.m ...................................... PASS      0/1
                                                                  FAIL    1


but


>> test text
PASSES 1 out of 1 test


Can someone reproduce this behavior?

Avinoam Kalma <avinoam>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-12 rik5 StatusWorks For Me Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2015-10-19 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code