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

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

[Octave-bug-tracker] [bug #54718] __run_test_suite__ doesn't preserve st


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #54718] __run_test_suite__ doesn't preserve start or working directory
Date: Wed, 26 Sep 2018 10:57:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #13, bug #54718 (project octave):

I pushed the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/4c721ed27a28

The call to display_directory ultimately emitted a signal to change Octave's
directory.  Since that signal is queued and may not be processed until after
the chdir function in the script (or series of commands entered at the prompt)
was finished, the current directory could be reset to a previous value.

In addition to fixing the reported problem, my patch also changes Octave's
behavior.  Previously, if you had sync_octave_directory set to false and the
directory displayed in the file browser was different from Octave's current
directory, then you changed the sync_octave_directory setting to true, the
directory displayed in the file browser would change to match Octave's current
directory as soon as you applied the setting.  Now, it will not synchronize
until you make some other change, either by changing Octave's current
directory or by viewing another directory in the file browser.  That seems
like reasonable behavior to me.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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