[tests/link sdk] Fix watchOS version check.
This commit is contained in:
Родитель
9c745aa148
Коммит
d550328f3f
|
@ -53,11 +53,7 @@ namespace LinkSdk {
|
|||
Assert.That (Dlfcn.dlsym (lib, "sqlite3_bind_int"), Is.Not.EqualTo (IntPtr.Zero), "sqlite3_bind_int");
|
||||
// iOS does not have some symbols defined - if that change/fail in the future we'll need to update Mono.Data.Sqlite
|
||||
// note: Apple devices (at least iOS and AppleTV) running 10.x have a more recent version of libsqlite which includes _key and _rekey
|
||||
#if __WATCHOS__
|
||||
var version = true;
|
||||
#else
|
||||
var version = UIDevice.CurrentDevice.CheckSystemVersion (10,0);
|
||||
#endif
|
||||
var version = TestRuntime.CheckXcodeVersion (8, 0);
|
||||
if (version && (Runtime.Arch == Arch.DEVICE)) {
|
||||
Assert.That (Dlfcn.dlsym (lib, "sqlite3_key"), Is.Not.EqualTo (IntPtr.Zero), "sqlite3_key");
|
||||
Assert.That (Dlfcn.dlsym (lib, "sqlite3_rekey"), Is.Not.EqualTo (IntPtr.Zero), "sqlite3_rekey");
|
||||
|
|
|
@ -172,6 +172,9 @@
|
|||
<Compile Include="ReflectionTest.cs" />
|
||||
<Compile Include="HttpClientHandlerTest.cs" />
|
||||
<Compile Include="CanaryTest.cs" />
|
||||
<Compile Include="..\..\common\TestRuntime.cs">
|
||||
<Link>TestRuntime.cs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\BundledResources\BundledResources.csproj">
|
||||
|
|
Загрузка…
Ссылка в новой задаче