Skip to content

Commit 87da246

Browse files
committed
250918.102135.CST [skip ci] matlab/tests: remove setpath.m
1 parent 2a36760 commit 87da246

File tree

6 files changed

+5
-19
lines changed

6 files changed

+5
-19
lines changed

matlab/tests/pdv.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function pdv(options)
127127

128128
% Restore the random number generator state
129129
rng(orig_rng_state);
130-
setpath(oldpath); % Restore the path to oldpath.
130+
path(oldpath); % Restore the path to oldpath.
131131
cd(olddir); % Go back to olddir.
132132
fprintf('\nCurrently in %s\n\n', pwd());
133133

matlab/tests/private/get_solvers.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,6 @@
170170

171171
% If there is an exception, restore the path and rethrow the exception.
172172
if ~isempty(exception)
173-
setpath(oldpath);
173+
path(oldpath);
174174
rethrow(exception);
175175
end

matlab/tests/private/prepare_test_dir.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
% fullfile(root_dir, '.development', 'archiva', 'dev_arch'), and an equivalent version is in
6363
% fullfile(root_dir, '.development', 'archiva', 'dev_arch', 'norma'), which is the "norma" version
6464
% of the "archiva" version. We use the latter because the name of the solver there is SOLVER_norma,
65-
% which is convenient for the test. Consequently, when we compiler the archiva version, the solver
65+
% which is convenient for the test. Consequently, when we compile the archiva version, the solver
6666
% name is SOLVER_norma. See get_solvers.m for details.
6767
archiva_dir = fullfile(root_dir, '.development', 'archiva', 'dev_arch', 'norma');
6868

matlab/tests/private/setpath.m

Lines changed: 0 additions & 14 deletions
This file was deleted.

matlab/tests/profile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
% N.B.: Do NOT try uninstalling the solvers, because we may call `verify` again with 'ncp', which
191191
% means not to compile the solvers and reuse the existing MEX files, which would fail if we
192192
% uninstall the solvers here.
193-
setpath(oldpath);
193+
path(oldpath);
194194

195195
% Go back to olddir.
196196
cd(olddir);

matlab/tests/verify.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function verify(varargin)
108108
% N.B.: Do NOT try uninstalling the solvers, because we may call `verify` again with 'ncp', which
109109
% means not to compile the solvers and reuse the existing MEX files, which would fail if we
110110
% uninstall the solvers here.
111-
setpath(oldpath);
111+
path(oldpath);
112112

113113
% Go back to olddir.
114114
cd(olddir);

0 commit comments

Comments
 (0)