Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: third_party/sqlite/src/test/capi3c.test

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/capi3.test ('k') | third_party/sqlite/src/test/cffault.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/capi3c.test
diff --git a/third_party/sqlite/src/test/capi3c.test b/third_party/sqlite/src/test/capi3c.test
index 15307a7f7ac90bc4fe5d92375b3788c2a21fb870..57cf146c73dd1a081ee7ef3073c022ec3a479786 100644
--- a/third_party/sqlite/src/test/capi3c.test
+++ b/third_party/sqlite/src/test/capi3c.test
@@ -865,19 +865,20 @@ do_test capi3c-11.9.3 {
do_test capi3c-11.10 {
sqlite3_step $STMT
} {SQLITE_ROW}
-ifcapable !autoreset {
- # If SQLITE_OMIT_AUTORESET is defined, then the statement must be
- # reset() before it can be passed to step() again.
- do_test capi3-11.11a { sqlite3_step $STMT } {SQLITE_MISUSE}
- do_test capi3-11.11b { sqlite3_reset $STMT } {SQLITE_ABORT}
-}
do_test capi3c-11.11 {
sqlite3_step $STMT
} {SQLITE_DONE}
-do_test capi3c-11.12 {
- sqlite3_step $STMT
- sqlite3_step $STMT
-} {SQLITE_ROW}
+ifcapable !autoreset {
+ do_test capi3c-11.12armor {
+ sqlite3_step $STMT
+ sqlite3_step $STMT
+ } {SQLITE_MISUSE}
+} else {
+ do_test capi3c-11.12 {
+ sqlite3_step $STMT
+ sqlite3_step $STMT
+ } {SQLITE_ROW}
+}
do_test capi3c-11.13 {
sqlite3_finalize $STMT
} {SQLITE_OK}
« no previous file with comments | « third_party/sqlite/src/test/capi3.test ('k') | third_party/sqlite/src/test/cffault.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698