Skip to content

Commit 0d9bb16

Browse files
committed
samepath at least R2017b
1 parent bc7352a commit 0d9bb16

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

+stdlib/+java/private/javaAbsolutePath.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
javaPath = file.toPath();
88

99
if ~javaPath.isAbsolute()
10-
javaPath = javaPathObject(pwd()).resolve(javaPath);
10+
% auxilary variable for Matlab < R2019b
11+
b = javaPathObject(pwd());
12+
javaPath = b.resolve(javaPath);
1113
end
1214

1315
end

+stdlib/perl_exe.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
return
1111
end
1212

13-
cwd = fileparts(mfilename("fullpath"));
13+
ps = [fileparts(mfilename("fullpath")), '/private/executable.pl'];
1414

15-
[r, s] = perl(cwd + "/private/executable.pl");
15+
[r, s] = perl(ps);
1616

1717
if s == 0 && isfile(r)
1818
exe = r;

test/TestSame.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019b', 'impure'}) ...
2+
TestTags = {'R2017b', 'impure'}) ...
33
TestSame < matlab.unittest.TestCase
44

55
properties (TestParameter)

test_main.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function test_main(context, sel)
1818
else
1919
cwd = context.Plan.RootFolder;
2020
end
21-
test_root = [cwd, '/test'];
21+
test_root = strcat(cwd, '/test');
2222

2323
rtags = releaseTestTags();
2424

0 commit comments

Comments
 (0)