File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 11classdef (SharedTestFixtures = { matlab .unittest .fixtures .PathFixture(fileparts(fileparts(mfilename(' fullpath' ))))}, ...
2- TestTags = {' R2021a ' , ' impure' }) ...
2+ TestTags = {' R2019b ' , ' impure' }) ...
33 TestTime < matlab .unittest .TestCase
44
55properties (TestParameter )
6- B_set_modtime
6+ B_set_modtime = { ' java ' , ' python ' , ' sys ' }
77end
88
99
10- methods (TestParameterDefinition , Static )
11- function B_set_modtime = setupBackends()
12- B_set_modtime = init_backend(" set_modtime" );
13- end
14- end
15-
1610methods (TestClassSetup )
1711function test_path(tc )
1812tc .applyFixture(matlab .unittest .fixtures .WorkingFolderFixture())
@@ -36,10 +30,13 @@ function test_touch_modtime(tc, B_set_modtime)
3630
3731ok = stdlib .set_modtime(fn , datetime(" now" ), B_set_modtime );
3832
39- tc .assertTrue(ok )
40- t1 = stdlib .get_modtime(fn );
41-
42- tc .verifyGreaterThanOrEqual(t1 , t0 )
33+ if ismember(B_set_modtime , stdlib .Backend().select(' set_modtime' ))
34+ tc .assertTrue(ok )
35+ t1 = stdlib .get_modtime(fn );
36+ tc .verifyGreaterThanOrEqual(t1 , t0 )
37+ else
38+ tc .assertEmpty(ok )
39+ end
4340end
4441
4542end
You can’t perform that action at this time.
0 commit comments