Skip to content

Commit

Permalink
[tests] add execute permission for aprofutil
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpeppers committed Jan 28, 2022
1 parent ad0a86e commit a88d9c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/MSBuildDeviceIntegration/Tests/AotProfileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public void BuildBasicApplicationAndAotProfileIt ()
WaitForAppBuiltForOlderAndroidWarning (proj.PackageName, Path.Combine (Root, b.ProjectDirectory, "oldsdk-logcat.log"));
System.Threading.Thread.Sleep (5000);
b.BuildLogFile = "build2.log";

// Need execute permission
if (Builder.UseDotNet && !IsWindows) {
var aprofutil = Path.Combine (Root, b.ProjectDirectory, "aprofutil");
RunProcess ("chmod", $"u+x {aprofutil}");
}

Assert.IsTrue (b.RunTarget (proj, "FinishAotProfiling", doNotCleanupOnUpdate: true), "Run of FinishAotProfiling should have succeeded.");
var customProfile = Path.Combine (Root, projDirectory, "custom.aprof");
FileAssert.Exists (customProfile);
Expand Down

0 comments on commit a88d9c9

Please sign in to comment.