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

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

[Octave-bug-tracker] [bug #59339] [octave forge] (signal) BIST for `data


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #59339] [octave forge] (signal) BIST for `data2fun` fails during `pkg test signal`
Date: Sat, 24 Oct 2020 15:58:08 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 Edg/86.0.622.51

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

                 Summary: [octave forge] (signal) BIST for `data2fun` fails
during `pkg test signal`
                 Project: GNU Octave
            Submitted by: mmuetzel
            Submitted on: Sat 24 Oct 2020 09:58:07 PM CEST
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.0.92
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

While running the BISTs of signal 1.4.1 with Octave 6.0.92 on Windows, the
tests for `data2fun` fail:

>>>>> processing C:\Program Files\GNU
Octave\Octave-6.0.92\mingw64\share\octave\packages\signal-1.4.1\data2fun.m
***** test
 unwind_protect
   [fhandle fname] = data2fun (t, y, "file", "testdata2fun");
   yt = testdata2fun (t);
   assert (y, yt);
   assert (y, fhandle (t));
 unwind_protect_cleanup
   unlink (fname);
   unlink ([fname(1:end-2) ".mat"]);
 end_unwind_protect
!!!!! test failed
'fname' undefined near line 9, column 9
shared variables   scalar structure containing the fields:

    t =

            0   0.1111   0.2222   0.3333   0.4444   0.5556   0.6667   0.7778  
0.8889   1.0000

    y =

       1.0000   0.7901   0.6049   0.4444   0.3086   0.1975   0.1111   0.0494  
0.0123        0

***** test
 unwind_protect
   [fhandle fname] = data2fun (t, y, "file", "");
   yt = testdata2fun (t);
   assert (y, yt);
   assert (y, fhandle (t));
 unwind_protect_cleanup
   unlink (fname);
   unlink ([fname(1:end-2) ".mat"]);
 end_unwind_protect
!!!!! test failed
'fname' undefined near line 9, column 9
shared variables   scalar structure containing the fields:

    t =

            0   0.1111   0.2222   0.3333   0.4444   0.5556   0.6667   0.7778  
0.8889   1.0000

    y =

       1.0000   0.7901   0.6049   0.4444   0.3086   0.1975   0.1111   0.0494  
0.0123        0

***** test
 unwind_protect
   [fhandle fname] = data2fun (t, y, "file", "testdata2fun", "interp",
"linear");
   yt = testdata2fun (t);
   assert (y, yt);
   assert (y, fhandle (t));
 unwind_protect_cleanup
   unlink (fname);
   unlink ([fname(1:end-2) ".mat"]);
 end_unwind_protect
!!!!! test failed
'fname' undefined near line 9, column 9
shared variables   scalar structure containing the fields:

    t =

            0   0.1111   0.2222   0.3333   0.4444   0.5556   0.6667   0.7778  
0.8889   1.0000

    y =

       1.0000   0.7901   0.6049   0.4444   0.3086   0.1975   0.1111   0.0494  
0.0123        0


This is probably because the current directory during the test is the
directory of the .m file. The user might not have write permission for that
directory (without elevated or superuser privileges). Could the current
directory be changed to `tempdir ()` for these tests?

I've marked as Microsoft Windows because I've tested on that OS. But I believe
the error would also happen on Linux if the package is installed in /usr and
Octave runs without superuser privileges.

CC'ing Mike Miller as the package maintainer.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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