|
10 | 10 | device_fun = {@stdlib.device, @stdlib.sys.device, @stdlib.java.device, @stdlib.python.device} |
11 | 11 | disk_available_fun = {@stdlib.disk_available, @stdlib.sys.disk_available, @stdlib.dotnet.disk_available, @stdlib.java.disk_available, @stdlib.python.disk_available} |
12 | 12 | disk_capacity_fun = {@stdlib.disk_capacity, @stdlib.sys.disk_capacity, @stdlib.dotnet.disk_capacity, @stdlib.java.disk_capacity, @stdlib.python.disk_capacity} |
| 13 | +fst_fun = {@stdlib.filesystem_type, @stdlib.sys.filesystem_type, @stdlib.dotnet.filesystem_type, @stdlib.java.filesystem_type, @stdlib.python.filesystem_type} |
13 | 14 | owner_fun = {@stdlib.get_owner, @stdlib.sys.get_owner, @stdlib.dotnet.get_owner, @stdlib.java.get_owner, @stdlib.python.get_owner} |
14 | 15 | end |
15 | 16 |
|
@@ -49,19 +50,18 @@ function test_hard_link_count(tc) |
49 | 50 | end |
50 | 51 |
|
51 | 52 |
|
52 | | -function test_filesystem_type(tc, Ps) |
| 53 | +function test_filesystem_type(tc, Ps, fst_fun) |
| 54 | +is_capable(tc, fst_fun) |
53 | 55 |
|
54 | | -s = stdlib.filesystem_type(Ps); |
55 | | -tc.verifyClass(s, 'string') |
56 | | -L = strlength(s); |
57 | | - |
58 | | -tc.assumeFalse(isempty(L) && tc.CI, "Some CI block viewing their filesystem type") |
| 56 | +t = fst_fun(Ps); |
| 57 | +tc.verifyClass(t, 'string') |
59 | 58 |
|
| 59 | +tc.assumeFalse(isempty(t) && tc.CI, "Some CI block viewing their filesystem type") |
60 | 60 |
|
61 | 61 | if stdlib.exists(Ps) |
62 | | - tc.verifyGreaterThan(L, 0) |
| 62 | + tc.verifyGreaterThan(strlength(t), 0) |
63 | 63 | else |
64 | | - tc.verifyEqual(L, 0) |
| 64 | + tc.verifyEmpty(t) |
65 | 65 | end |
66 | 66 | end |
67 | 67 |
|
|
0 commit comments