Disable GetSchema test on Win7 (dotnet/corefx#37450)
authorViktor Hofer <viktor.hofer@microsoft.com>
Mon, 6 May 2019 00:43:14 +0000 (02:43 +0200)
committerStephen Toub <stoub@microsoft.com>
Mon, 6 May 2019 00:43:13 +0000 (20:43 -0400)
Commit migrated from https://github.com/dotnet/corefx/commit/f5c963fabcca42d7f2ad9b3c313d93abe7d3d37a

src/libraries/System.Data.OleDb/tests/OleDbConnectionTests.cs

index 85380ce..259bdd2 100644 (file)
@@ -119,6 +119,11 @@ namespace System.Data.OleDb.Tests
         [InlineData(nameof(DbMetaDataCollectionNames.DataTypes), "TypeName")]
         public void GetSchema(string tableName, string columnName)
         {
+            if (PlatformDetection.IsWindows7)
+            {
+                return; // [ActiveIssue(37438)]
+            }
+
             DataTable schema = connection.GetSchema(tableName);
             Assert.True(schema != null && schema.Rows.Count > 0);
             var exception = Record.Exception(() => schema.Rows[0].Field<string>(columnName));