Skip to content

Commit 21f16d7

Browse files
committed
test:java: unix-only tag
1 parent a261e19 commit 21f16d7

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

buildfile.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
if isMATLABReleaseOlderThan("R2024b")
1717
cnomex = cnomex & ~HasTag("symlink");
1818
end
19+
if ispc()
20+
cnomex = cnomex & ~HasTag("unix");
21+
end
1922

20-
cmex = ~HasTag("exe") & HasTag("mex");
23+
cmex = HasTag("mex");
2124
cnojavamex = ~HasTag("java") & cnomex;
2225

2326

test/TestJava.m

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
end
66

77

8-
methods(Test, TestTags="java")
8+
methods (Test, TestTags=["java", "unix"])
99

1010
function test_inode(tc)
1111
tc.assumeFalse(ispc(), "not for Windows")
@@ -24,35 +24,37 @@ function test_device(tc)
2424
tc.verifyEmpty(stdlib.device(tempname))
2525
end
2626

27+
function test_owner(tc, Ps)
2728

28-
function test_filesystem_type(tc, Ps)
29-
30-
s = stdlib.filesystem_type(Ps);
29+
s = stdlib.get_owner(Ps);
3130
tc.verifyClass(s, 'string')
3231
L = strlength(s);
3332

34-
if strlength(Ps) == 0 || stdlib.exists(Ps)
33+
if stdlib.exists(Ps)
3534
tc.verifyGreaterThan(L, 0)
3635
else
3736
tc.verifyEqual(L, 0)
3837
end
3938
end
4039

40+
end
4141

42-
function test_owner(tc, Ps)
4342

44-
s = stdlib.get_owner(Ps);
43+
methods(Test, TestTags="java")
44+
45+
function test_filesystem_type(tc, Ps)
46+
47+
s = stdlib.filesystem_type(Ps);
4548
tc.verifyClass(s, 'string')
4649
L = strlength(s);
4750

48-
if stdlib.exists(Ps)
51+
if strlength(Ps) == 0 || stdlib.exists(Ps)
4952
tc.verifyGreaterThan(L, 0)
5053
else
5154
tc.verifyEqual(L, 0)
5255
end
5356
end
5457

55-
5658
function test_username(tc)
5759
u = stdlib.get_username();
5860
tc.verifyGreaterThan(strlength(u), 0)

0 commit comments

Comments
 (0)