Skip to content

Commit e22e855

Browse files
committed
[WIP] Fix more tests
1 parent e3e93d7 commit e22e855

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ public void BuildAotApplicationAndÜmläüts (string supportedAbis, bool enableL
212212
// Since we overrode minSdkVersion=16, that means we should use libc.so from android-16.
213213
if (ndk22OrNewer) {
214214
// NDK r22 or newer store libc in [toolchain]/sysroot/usr/lib/[ARCH]/[API]/libc.so
215-
StringAssertEx.ContainsRegex (@"\s*\[aot-compiler stdout].*sysroot.*.usr.lib.*16.libc\.so", b.LastBuildOutput, "AOT+LLVM should use libc.so from minSdkVersion!");
215+
StringAssertEx.ContainsRegex (@"\s*\[aot-compiler stdout].*sysroot.*.usr.lib.*19.libc\.so", b.LastBuildOutput, "AOT+LLVM should use libc.so from minSdkVersion!");
216216
} else {
217-
StringAssertEx.ContainsRegex (@"\s*\[aot-compiler stdout].*android-16.arch-.*.usr.lib.libc\.so", b.LastBuildOutput, "AOT+LLVM should use libc.so from minSdkVersion!");
217+
StringAssertEx.ContainsRegex (@"\s*\[aot-compiler stdout].*android-19.arch-.*.usr.lib.libc\.so", b.LastBuildOutput, "AOT+LLVM should use libc.so from minSdkVersion!");
218218
}
219219
}
220220
foreach (var abi in supportedAbis.Split (new char [] { ';' })) {

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/MakeBundleTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void CheckBundleForSoname (ZipArchive zip, string bundlePath)
159159
string sonameField;
160160

161161
if (elfReaderLlvm) {
162-
arguments = "-dynamic-table";
162+
arguments = "--dynamic-table";
163163
sonameField = "SONAME";
164164
} else {
165165
arguments = "-d";

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/ManifestTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Linq;
33
using NUnit.Framework;
44
using Xamarin.ProjectTools;
@@ -440,7 +440,7 @@ public void DirectBootAwareAttribute ()
440440
/* pattern */ "{abi}{minSDK:00}{versionCode:000}",
441441
/* props */ null,
442442
/* shouldBuild */ true,
443-
/* expected */ "216012;316012",
443+
/* expected */ "219012;316012",
444444
},
445445
new object[] {
446446
/* seperateApk */ true,
@@ -450,7 +450,7 @@ public void DirectBootAwareAttribute ()
450450
/* pattern */ "{abi}{minSDK:00}{screen}{versionCode:000}",
451451
/* props */ "screen=24",
452452
/* shouldBuild */ true,
453-
/* expected */ "21624012;31624012",
453+
/* expected */ "21924012;31624012",
454454
},
455455
new object[] {
456456
/* seperateApk */ true,
@@ -460,7 +460,7 @@ public void DirectBootAwareAttribute ()
460460
/* pattern */ "{abi}{minSDK:00}{screen}{foo:0}{versionCode:000}",
461461
/* props */ "screen=24;foo=$(Foo)",
462462
/* shouldBuild */ true,
463-
/* expected */ "216241012;316241012",
463+
/* expected */ "219241012;316241012",
464464
},
465465
new object[] {
466466
/* seperateApk */ true,
@@ -470,7 +470,7 @@ public void DirectBootAwareAttribute ()
470470
/* pattern */ "{abi}{minSDK:00}{screen}{foo:00}{versionCode:000}",
471471
/* props */ "screen=24;foo=$(Foo)",
472472
/* shouldBuild */ false,
473-
/* expected */ "2162401012;3162401012",
473+
/* expected */ "2192401012;3162401012",
474474
},
475475
};
476476

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/NdkUtilTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void TestNdkUtil ()
4242
Assert.IsTrue (ndk.ValidateNdkPlatform (arch, enableLLVM: false));
4343
Assert.AreEqual (0, errors.Count, "NdkTools.ValidateNdkPlatform should not have returned false.");
4444
int level = ndk.GetMinimumApiLevelFor (arch);
45-
int expected = 16;
45+
int expected = 19;
4646
Assert.AreEqual (expected, level, $"Min Api Level for {arch} should be {expected}.");
4747
var compilerNoQuotes = ndk.GetToolPath (NdkToolKind.CompilerC, arch, level);
4848
Assert.AreEqual (0, errors.Count, "NdkTools.GetToolPath should not have errored.");

0 commit comments

Comments
 (0)