| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |