Skip to content

Commit

Permalink
disable the serialize tests for winsqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsink committed Nov 15, 2023
1 parent 20dd316 commit ac49cdd
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/common/tests_xunit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3536,6 +3536,10 @@ public class class_test_serialize_deserialize
[Fact]
public void test_serialize_should_return_size()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

using (sqlite3 db = ugly.open(":memory:"))
{
db.exec("CREATE TABLE foo (x text);");
Expand All @@ -3557,6 +3561,10 @@ public void test_serialize_should_return_size()
[Fact]
public void test_serialize_nocopy_should_return_size()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

using (sqlite3 db = ugly.open(":memory:"))
{
db.exec("CREATE TABLE foo (x text);");
Expand All @@ -3577,6 +3585,10 @@ public void test_serialize_nocopy_should_return_size()
[Fact]
public void test_serialize_deserialize_same_db_instance_should_roundtrip()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

using (sqlite3 db = ugly.open(":memory:"))
{
db.exec("CREATE TABLE foo (x text);");
Expand All @@ -3601,6 +3613,10 @@ public void test_serialize_deserialize_same_db_instance_should_roundtrip()
[Fact]
public void test_serialize_deserialize_different_db_instances_allochglobal_should_roundtrip()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

byte[] serializedBuffer;

using (sqlite3 db1 = ugly.open(":memory:"))
Expand Down Expand Up @@ -3642,6 +3658,10 @@ public void test_serialize_deserialize_different_db_instances_allochglobal_shoul
[Fact]
public void test_serialize_deserialize_different_db_instances_shared_intptr_should_roundtrip()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

IntPtr serializedPtr;
long size;

Expand Down Expand Up @@ -3674,6 +3694,10 @@ public void test_serialize_deserialize_different_db_instances_shared_intptr_shou
[Fact]
public void test_serialize_deserialize_different_db_instances_sqlite3malloc64_should_roundtrip()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

IntPtr serializedPtr;
long size;

Expand Down Expand Up @@ -3717,6 +3741,10 @@ public void test_serialize_deserialize_different_db_instances_sqlite3malloc64_sh
[Fact]
public void test_serialize_deserialize_different_db_instances_sqlite3malloc_should_roundtrip()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

IntPtr serializedPtr;
long size;

Expand Down Expand Up @@ -3760,6 +3788,10 @@ public void test_serialize_deserialize_different_db_instances_sqlite3malloc_shou
[Fact]
public void test_serialize_deserialize_resizable_should_allow_adding_rows()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

IntPtr serializedPtr;
long size;

Expand Down Expand Up @@ -3828,6 +3860,10 @@ public void test_serialize_deserialize_resizable_should_allow_adding_rows()
[Fact]
public void test_serialize_deserialize_extra_maxDataSize_should_allow_adding_rows()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

byte[] serializedBuffer;

using (sqlite3 db1 = ugly.open(":memory:"))
Expand Down Expand Up @@ -3873,6 +3909,10 @@ public void test_serialize_deserialize_extra_maxDataSize_should_allow_adding_row
[Fact]
public void test_serialize_deserialize_readonly_updating_row_should_fail()
{
// Skip failing test on windows system provided winsqlite3
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && raw.GetNativeLibraryName() == "winsqlite3")
return;

using (sqlite3 db = ugly.open(":memory:"))
{
db.exec("CREATE TABLE foo (x text);");
Expand Down

0 comments on commit ac49cdd

Please sign in to comment.