Skip to content

Commit

Permalink
Auto-format source code
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Autoformatter committed Jan 21, 2025
1 parent d6eaa99 commit 7e23b94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions tests/common/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ public static IList<string> GetArchitectures (string runtimeIdentifier)
public static IEnumerable<string> GetBaseLibraryImplementations ()
{
foreach (var platform in GetIncludedPlatforms ())
foreach (var lib in GetBaseLibraryImplementations (platform))
yield return lib;
foreach (var lib in GetBaseLibraryImplementations (platform))
yield return lib;
}

public static IEnumerable<string> GetBaseLibraryImplementations (ApplePlatform platform)
Expand Down Expand Up @@ -745,7 +745,7 @@ public static bool CanRunArm64 {
get {
if (!canRunArm64.HasValue) {
int rv = 0;
IntPtr size = (IntPtr) sizeof(int);
IntPtr size = (IntPtr) sizeof (int);
if (sysctlbyname ("hw.optional.arm64", ref rv, ref size, IntPtr.Zero, IntPtr.Zero) == 0) {
canRunArm64 = rv == 1;
} else {
Expand Down Expand Up @@ -789,15 +789,15 @@ public static IEnumerable<string> GetUndefinedNativeSymbols (string file, string
return CallNM (file, "-gujA", arch);
}

public static bool TryGetApiDefinitionRsp (TargetFramework framework,
public static bool TryGetApiDefinitionRsp (TargetFramework framework,
[NotNullWhen (true)] out string rspPath)
{
rspPath = null;
var platform = framework.Platform switch {
ApplePlatform.iOS => "ios",
ApplePlatform.TVOS => "tvos",
ApplePlatform.MacOSX => "macos",
ApplePlatform.MacCatalyst => "maccatalyst",
ApplePlatform.iOS => "ios",
ApplePlatform.TVOS => "tvos",
ApplePlatform.MacOSX => "macos",
ApplePlatform.MacCatalyst => "maccatalyst",
_ => null,
};
if (platform is null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ protected Compilation CreateCompilation (ApplePlatform platform, [CallerMemberNa
// get the dll for the current platform, this is needed because that way we will get the attributes that
// are used in the old dlls that are needed to test the transformer.
var targetFramework = TargetFramework.GetTargetFramework (platform, isDotNet: true);
var workingDirectory = Path.Combine(Configuration.SourceRoot, "src");
var workingDirectory = Path.Combine (Configuration.SourceRoot, "src");
if (!Configuration.TryGetApiDefinitionRsp (targetFramework, out var rspFile)) {
Assert.Fail ($"Could not find rsp file for {targetFramework}");
Assert.Fail ($"Could not find rsp file for {targetFramework}");
}

var parseResult = CSharpCommandLineParser.Default.ParseRsp (
rspFile, workingDirectory, Configuration.DotNetBclDir);

Expand Down

0 comments on commit 7e23b94

Please sign in to comment.