Lines Matching refs:progress
15 # focus of this file is testing the 'progress callback'.
17 # $Id: progress.test,v 1.1 2003/10/18 09:37:27 danielk1977 Exp $
41 # Test that the progress callback is invoked.
42 do_test progress-1.0 {
44 db progress 1 "[namespace code {incr counter}] ; expr 0"
51 # Test that the query is abandoned when the progress callback returns non-zero
54 db progress 1 "[namespace code {incr counter}] ; expr 1"
61 # Test that the query is rolled back when the progress callback returns
66 db progress 1 "[namespace code {incr five_rows}] ; expr 0"
71 db progress 0 ""
76 # Now set up the progress callback to abandon the query after the number of
78 # some data will have been inserted into the table by the time the progress
80 db progress $five_rows "expr 1"
90 # progress query abandons a query.
93 db progress 0 ""
98 db progress 1 "expr 1"
102 db progress 0 ""
109 # Check that a value of 0 for N means no progress callback
112 db progress 0 "[namespace code {incr counter}] ; expr 0"
119 db progress 0 ""