File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 88
99if ispc()
1010 cmd = sprintf(' pwsh -c "Resolve-Path -Path ''%s'' -RelativeBasePath ''%s'' -Relative"' , other , base );
11+ elseif ismac()
12+ cmd = sprintf(' grealpath --relative-to="%s " "%s "' , base , other );
1113else
1214 cmd = sprintf(' realpath --relative-to="%s " "%s "' , base , other );
1315end
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function is_capable(tc, f)
66
77n = func2str(f );
88
9- if contains(n , " dotnet" )
9+ if contains(n , " . dotnet. " )
1010
1111 dapi = stdlib .dotnet_api();
1212
@@ -24,7 +24,7 @@ function is_capable(tc, f)
2424 tc .assumeGreaterThanOrEqual(dapi , 6 );
2525 end
2626
27- elseif contains(n , " java" )
27+ elseif contains(n , " . java. " )
2828
2929 japi = stdlib .java_api();
3030 tc .assumeGreaterThan(japi , 0 , " Java not available" )
@@ -49,6 +49,12 @@ function is_capable(tc, f)
4949 tc .assumeTrue(isunix() || ~isMATLABReleaseOlderThan(' R2024a' ))
5050 end
5151
52+ elseif contains(n , " .sys." )
53+
54+ if ismac() && endsWith(n , " relative_to" )
55+ tc .assumeNotEmpty(stdlib .which(" greadlink" ), " brew install coreutils" )
56+ end
57+
5258end
5359
5460end
You can’t perform that action at this time.
0 commit comments