summaryrefslogtreecommitdiffstats
path: root/sql/connection_unittest.cc
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2015-04-10 09:54:22 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-10 16:54:53 +0000
commit4472cfb65eb893f4fc84d36b6cd34ee5783d1ae3 (patch)
tree6b4a32611e0ec788a89a37defd373f4610ecbf1e /sql/connection_unittest.cc
parent980327417d215625b8e7840752eb5f56aadcaed6 (diff)
downloadchromium_src-4472cfb65eb893f4fc84d36b6cd34ee5783d1ae3.zip
chromium_src-4472cfb65eb893f4fc84d36b6cd34ee5783d1ae3.tar.gz
chromium_src-4472cfb65eb893f4fc84d36b6cd34ee5783d1ae3.tar.bz2
Fix sql_unittest on iOS using SDK 8.2
According to testing, sqlite3 version used on iOS (3008005) already returns SQLITE_NOTADB, so update SQLConnectionTest.RazeNOTADB to ignore that error from that version. BUG=475511,475512 Review URL: https://codereview.chromium.org/1075243002 Cr-Commit-Position: refs/heads/master@{#324648}
Diffstat (limited to 'sql/connection_unittest.cc')
-rw-r--r--sql/connection_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/connection_unittest.cc b/sql/connection_unittest.cc
index 3cb2e37..24d21fa 100644
--- a/sql/connection_unittest.cc
+++ b/sql/connection_unittest.cc
@@ -488,7 +488,7 @@ TEST_F(SQLConnectionTest, RazeNOTADB) {
// Earlier versions of Chromium compiled against SQLite 3.6.7.3, which
// returned SQLITE_IOERR_SHORT_READ in this case. Some platforms may still
// compile against an earlier SQLite via USE_SYSTEM_SQLITE.
- if (ignore_errors.SQLiteLibVersionNumber() < 3008007) {
+ if (ignore_errors.SQLiteLibVersionNumber() < 3008005) {
ignore_errors.IgnoreError(SQLITE_IOERR_SHORT_READ);
} else {
ignore_errors.IgnoreError(SQLITE_NOTADB);