bugGNU Octave - Bugs: bug #57458, 2 failing tests for publish in...

 
 

bug #57458: 2 failing tests for publish in test suite

Submitter:  Rik <rik5>
Submitted:  Sat 21 Dec 2019 09:13:32 PM UTC
   
 
Category:  Test Suite Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 23 Dec 2019 10:01:52 AM UTC, comment #1: 

I also see these two failing tests in current dev Octave.

This is issue is CLOSED as DUPLICATE of bug #57439 because the issue will be further solved there.

Hartmut <hardy>
Sat 21 Dec 2019 09:13:32 PM UTC, original submission:  

The two failing tests are


>>>>> processing /home/rik/wip/Projects_Mine/octave-dev/test/publish/publish.tst
***** test
 visibility = get (0, "defaultfigurevisible");
 toolkit = graphics_toolkit ();
 unwind_protect
   if (! __have_feature__ ("QT_OFFSCREEN")
       || ! strcmp (graphics_toolkit (), "qt"))
     try
       graphics_toolkit ("gnuplot");
     catch
       ## The system doesn't support gnuplot for drawing hidden
       ## figures.  Just return and have test marked as passing.
       return;
     end_try_catch
   endif
   set (0, "defaultfigurevisible", "off");

   scripts = dir ("test_script*.m");
   tmpDir = tempname ();
   mkdir (tmpDir);
   opts.outputDir = tmpDir;
   for fname = {scripts.name}
     publish (fname{1}, opts);
   endfor
   confirm_recursive_rmdir (false, "local");
   rmdir (tmpDir, "s");
 unwind_protect_cleanup
   set (0, "defaultfigurevisible", visibility);
   graphics_toolkit (toolkit);
 end_unwind_protect
!!!!! test failed
__imwrite__: invalid function handle
***** test
 visibility = get (0, "defaultfigurevisible");
 toolkit = graphics_toolkit ();
 unwind_protect
   if (! __have_feature__ ("QT_OFFSCREEN")
       || ! strcmp (graphics_toolkit (), "qt"))
     try
       graphics_toolkit ("gnuplot");
     catch
       ## The system doesn't support gnuplot for drawing hidden
       ## figures.  Just return and have test marked as passing.
       return;
     end_try_catch
   endif
   set (0, "defaultfigurevisible", "off");
   ## Create temporary directory
   tmpDir = tempname ();
   mkdir (tmpDir);
   opts.outputDir = tmpDir;
   ## Call publish and grabcode
   publish ("test_script.m", opts);
   str1 = fileread ("test_script.m");
   str2 = grabcode (fullfile (tmpDir, "test_script.html"));
   confirm_recursive_rmdir (false, "local");
   rmdir (tmpDir, "s");
   ## Canonicalize strings
   str1 = strjoin (deblank (strsplit (str1, "\n")), "\n");
   str2 = strjoin (deblank (strsplit (str2, "\n")), "\n");
   assert (hash ("md5", str1), hash ("md5", str2));
 unwind_protect_cleanup
   set (0, "defaultfigurevisible", visibility);
   graphics_toolkit (toolkit);
 end_unwind_protect
!!!!! test failed
__imwrite__: invalid function handle



Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by rik5 (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
    2019-12-21 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed
    2019-12-21 rik5 Dependencies- Depends on bugs #57439

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code