octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57458] 2 failing tests for publish in test su


From: Rik
Subject: [Octave-bug-tracker] [bug #57458] 2 failing tests for publish in test suite
Date: Sat, 21 Dec 2019 16:13:34 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

URL:
  <https://savannah.gnu.org/bugs/?57458>

                 Summary: 2 failing tests for publish in test suite
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Sat 21 Dec 2019 01:13:32 PM PST
                Category: Test Suite
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57458>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]