Imported Upstream version 5.8.0.88

Former-commit-id: 4b7216ffda08448e562271ce733688e761120fc5
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-11-28 19:36:51 +00:00
parent 7d05485754
commit 6123a772ed
277 changed files with 4817 additions and 941 deletions

View File

@@ -20,13 +20,24 @@ namespace MonoTests.Mono.Data.Sqlite {
[TestFixture]
public class SqliteiOS82BugTests {
readonly static string dbPath = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), "adodemo.db3");
readonly static string connectionString = "Data Source=" + dbPath;
static SqliteConnection cnn = new SqliteConnection (connectionString);
string dbPath;
string connectionString;
SqliteConnection cnn;
[SetUp]
public void Create()
{
dbPath = Path.GetTempFileName ();
// We want to start with a fresh db for each full run
// The database is created on the first open()
// but TempFile does create a file
if (File.Exists (dbPath))
File.Delete (dbPath);
connectionString = "Data Source=" + dbPath;
cnn = new SqliteConnection (connectionString);
try {
if(File.Exists(dbPath)) {
cnn.Dispose();
@@ -56,6 +67,13 @@ namespace MonoTests.Mono.Data.Sqlite {
}
}
[TearDown]
public void TearDown ()
{
if (File.Exists (dbPath))
File.Delete (dbPath);
}
// Ref: https://bugzilla.xamarin.com/show_bug.cgi?id=27864
// As of iOS 8.2 Apple updated Sqlite and broke queries that used to work pre iOS 8.2 like the select command in this test
// The pruppose of this test is to know when apple fixes this. Expected test behaivour is as follows.