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

Side by Side Diff: third_party/sqlite/src/test/mallocI.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 unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/test/malloc5.test ('k') | third_party/sqlite/src/test/mallocK.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2008 August 01 1 # 2008 August 01
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } -cleanup { 54 } -cleanup {
55 do_test mallocI-4.$::n.2 { 55 do_test mallocI-4.$::n.2 {
56 # If this INSERT is possible then [db] does not hold a shared lock 56 # If this INSERT is possible then [db] does not hold a shared lock
57 # on the database file. 57 # on the database file.
58 catchsql { INSERT INTO t1 VALUES(1, 2, 3) } db2 58 catchsql { INSERT INTO t1 VALUES(1, 2, 3) } db2
59 } {0 {}} 59 } {0 {}}
60 catch {db2 close} 60 catch {db2 close}
61 } 61 }
62 catch { db2 close } 62 catch { db2 close }
63 63
64 do_faultsim_test mallocI-5 -faults oom* -prep {
65 catch { db close }
66 sqlite3 db test.db
67 sqlite3_db_config_lookaside db 0 0 0
68 } -body {
69 db eval { Select CAST(1 AS blob) }
70 } -test {
71 faultsim_test_result {0 1}
72 }
73
74
64 finish_test 75 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/malloc5.test ('k') | third_party/sqlite/src/test/mallocK.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698