Skip to content

Commit a88d9c9

Browse files
[tests] add execute permission for aprofutil
1 parent ad0a86e commit a88d9c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/MSBuildDeviceIntegration/Tests/AotProfileTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public void BuildBasicApplicationAndAotProfileIt ()
3737
WaitForAppBuiltForOlderAndroidWarning (proj.PackageName, Path.Combine (Root, b.ProjectDirectory, "oldsdk-logcat.log"));
3838
System.Threading.Thread.Sleep (5000);
3939
b.BuildLogFile = "build2.log";
40+
41+
// Need execute permission
42+
if (Builder.UseDotNet && !IsWindows) {
43+
var aprofutil = Path.Combine (Root, b.ProjectDirectory, "aprofutil");
44+
RunProcess ("chmod", $"u+x {aprofutil}");
45+
}
46+
4047
Assert.IsTrue (b.RunTarget (proj, "FinishAotProfiling", doNotCleanupOnUpdate: true), "Run of FinishAotProfiling should have succeeded.");
4148
var customProfile = Path.Combine (Root, projDirectory, "custom.aprof");
4249
FileAssert.Exists (customProfile);

0 commit comments

Comments
 (0)