OLD | NEW |
1 # 2001 September 15 | 1 # 2001 September 15 |
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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 do_test main-4.2 { | 507 do_test main-4.2 { |
508 set rc [catch {sqlite3 db test.db -vfs crash} msg] | 508 set rc [catch {sqlite3 db test.db -vfs crash} msg] |
509 list $rc $msg | 509 list $rc $msg |
510 } {1 {no such vfs: crash}} | 510 } {1 {no such vfs: crash}} |
511 do_test main-4.3 { | 511 do_test main-4.3 { |
512 set rc [catch {sqlite3 db test.db -vfs async} msg] | 512 set rc [catch {sqlite3 db test.db -vfs async} msg] |
513 list $rc $msg | 513 list $rc $msg |
514 } {1 {no such vfs: async}} | 514 } {1 {no such vfs: async}} |
515 } | 515 } |
516 } | 516 } |
| 517 |
| 518 # Print the version number so that it can be picked up by releasetest.tcl. |
| 519 # |
| 520 puts [db one {SELECT 'VERSION: ' || |
| 521 sqlite_version() || ' ' || |
| 522 sqlite_source_id();}] |
| 523 |
| 524 # Do deliberate failures if the TEST_FAILURE environment variable is set. |
| 525 # This is done to verify that failure notifications are detected by the |
| 526 # releasetest.tcl script, or possibly by other scripts involved in automatic |
| 527 # testing. |
| 528 # |
| 529 if {[info exists ::env(TEST_FAILURE)]} { |
| 530 set res 123 |
| 531 if {$::env(TEST_FAILURE)==0} {set res 234} |
| 532 do_test main-99.1 { |
| 533 bad_behavior $::env(TEST_FAILURE) |
| 534 set x 123 |
| 535 } $res |
| 536 } |
517 | 537 |
518 finish_test | 538 finish_test |
OLD | NEW |