Skip to content

Commit a4bfd97

Browse files
committed
test: PathFixture needs absolute path for reliability
when it was just ".." intermittantly the wrong path would be added
1 parent 5231996 commit a4bfd97

36 files changed

+36
-36
lines changed

test/TestAbsolute.m

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

test/TestCanonical.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture("..")}, ...
1+
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
22
TestTags = {'impure'}) ...
33
TestCanonical < matlab.unittest.TestCase
44

test/TestDisk.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture("..")}, ...
1+
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
22
TestTags = {'R2021a', 'impure'}) ...
33
TestDisk < matlab.unittest.TestCase
44

test/TestExists.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture("..")}, ...
1+
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
22
TestTags = {'impure'}) ...
33
TestExists < matlab.unittest.TestCase
44

test/TestExpanduser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture("..")}, ...
1+
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
22
TestTags = {'R2021a', 'impure'}) ...
33
TestExpanduser < matlab.unittest.TestCase
44

test/TestFileImpure.m

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

test/TestFilePure.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture("..")}, ...
1+
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
22
TestTags = {'R2019b', 'pure'}) ...
33
TestFilePure < matlab.unittest.TestCase
44

test/TestFilename.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture("..")}, ...
1+
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
22
TestTags = {'R2021a', 'pure'}) ...
33
TestFilename < matlab.unittest.TestCase
44

test/TestHDF4.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture("..")}, ...
1+
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
22
TestTags = {'R2019b', 'hdf4'}) ...
33
TestHDF4 < matlab.unittest.TestCase
44

test/TestHDF5.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture("..")}, ...
1+
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
22
TestTags = {'hdf5'}) ...
33
TestHDF5 < matlab.unittest.TestCase
44

0 commit comments

Comments
 (0)