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

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

[Octave-bug-tracker] [bug #53027] Strange behavior of globals with load


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #53027] Strange behavior of globals with load
Date: Wed, 1 May 2024 11:31:57 -0400 (EDT)

Follow-up Comment #10, bug #53027 (group octave):

I recently had to run "make check" several times and found many identical save
files left behind in the temp directory afterwards. The test associated with
this bug report was the source, because it saved a global variable to a
tempfile but never deleted that file afterwards.

Proposed fix:


diff -r 8cfedb86d373 test/bug-53027/bug-53027.tst
--- a/test/bug-53027/bug-53027.tst      Wed May 01 10:31:31 2024 -0400
+++ b/test/bug-53027/bug-53027.tst      Wed May 01 11:24:41 2024 -0400
@@ -24,6 +24,7 @@
 %! clear X
 %! assert (exist ("X"), 0);
 %! clear -global X;  # cleanup after test
+%! unlink (fname);   # remove temp file
 
 %!test <*53027>
 %! [a, b] = ntest53027a ();


I think this is OK to go on the stable branch -- pls let me know if that's not
the case.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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