Mercurial > octave
view test/bug-54490.tst @ 32087:a4fbcbaa0aa2
rename: Consistent behavior cross-platform for existing target file (bug #63803).
* liboctave/system/file-ops.cc (octave::sys:rename): Manually enforce
consistent behavior on different platforms because the STL allow implementation
defined behavior if the target already exists.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 06 May 2023 18:12:59 +0200 |
parents | 9080316864bf |
children |
line wrap: on
line source
%!function out = bug54490 () %! global k; %! k = 1; %! out = 3; %!endfunction %!test <*54490> %! global k; %! k = 2; %! a = [5, 6]; %! a(k) = bug54490 (); %! assert (a, [5, 3]); %! k = 2; %! a = [5, 6]; %! [a(k)] = bug54490 (); %! assert (a, [5, 3]); %! clear -global k; # cleanup after test