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

Side by Side Diff: third_party/sqlite/src/test/sysfault.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/syscall.test ('k') | third_party/sqlite/src/test/tabfunc01.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 # 2011 March 28 1 # 2011 March 28
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 #------------------------------------------------------------------------- 219 #-------------------------------------------------------------------------
220 220
221 proc vfsfault_install {} { 221 proc vfsfault_install {} {
222 test_syscall reset 222 test_syscall reset
223 test_syscall install {fstat fallocate} 223 test_syscall install {fstat fallocate}
224 } 224 }
225 do_faultsim_test 3 -faults vfsfault-* -prep { 225 do_faultsim_test 3 -faults vfsfault-* -prep {
226 faultsim_delete_and_reopen 226 faultsim_delete_and_reopen
227 file_control_chunksize_test db main 8192 227 file_control_chunksize_test db main 8192
228 execsql { 228 execsql {
229 PRAGMA synchronous=OFF;
229 CREATE TABLE t1(a, b); 230 CREATE TABLE t1(a, b);
230 BEGIN; 231 BEGIN;
231 SELECT * FROM t1; 232 SELECT * FROM t1;
232 } 233 }
233 } -body { 234 } -body {
234 test_syscall errno fstat EIO 235 test_syscall errno fstat EIO
235 test_syscall errno fallocate EIO 236 test_syscall errno fallocate EIO
236 237
237 execsql { 238 execsql {
238 INSERT INTO t1 VALUES(randomblob(10000), randomblob(10000)); 239 INSERT INTO t1 VALUES(randomblob(10000), randomblob(10000));
(...skipping 29 matching lines...) Expand all
268 test_syscall errno mmap EACCES 269 test_syscall errno mmap EACCES
269 270
270 execsql { 271 execsql {
271 SELECT * FROM t1; 272 SELECT * FROM t1;
272 } 273 }
273 } -test { 274 } -test {
274 faultsim_test_result {0 {1 2}} {1 {disk I/O error}} 275 faultsim_test_result {0 {1 2}} {1 {disk I/O error}}
275 } 276 }
276 277
277 finish_test 278 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/syscall.test ('k') | third_party/sqlite/src/test/tabfunc01.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698