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

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

[Octave-bug-tracker] [bug #54955] 'test savefig' assumes it can write to


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #54955] 'test savefig' assumes it can write to current directory, leaves file behind
Date: Sun, 4 Nov 2018 13:25:58 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

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

                 Summary: 'test savefig' assumes it can write to current
directory, leaves file behind
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Sun 04 Nov 2018 10:25:57 AM PST
                Category: Test Suite
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The unit tests in savefig.m have a couple of problems.

The first is that the test fails if pwd is an unwriteable directory. If the
test needs to write files, it should write them to a newly created temporary
directory.

Relatedly, if the current directory is writeable, the test leaves behind a
file 'myfig.fig' in the current directory when the test finishes and even
after Octave exits.

A temporary directory should be used to write files and be cleaned up
properly.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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