File: 18_vacuum_test.patch

package info (click to toggle)
db5.3 5.3.28%2Bdfsg1-0.5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 158,360 kB
  • sloc: ansic: 448,411; java: 111,824; tcl: 80,544; sh: 44,326; cs: 33,697; cpp: 21,604; perl: 14,557; xml: 10,799; makefile: 4,077; yacc: 1,003; awk: 965; sql: 801; erlang: 342; python: 216; php: 24; asm: 14
file content (39 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- test/incrvacuum.test
+++ test/incrvacuum.test
@@ -444,6 +444,8 @@
     list [expr {[file size test.db] / 1024}]
   } {20}
 
+  if {$::nRow < $::iWrite} break
+
   do_test incrvacuum-7.${::iWrite}.3 {
     execsql {
       SELECT * FROM tbl1;
@@ -690,7 +692,8 @@
 # statement when the database is empty, but doesn't execute it until
 # after some other process has created the database.
 #
-db2 close
+# DBSQL does not do "db2 close" here because incrvacuum-12.2 is excluded 
+# so db2 is not opended.
 db close
 file delete -force test.db test.db-journal
 sqlite3 db test.db  ;  set ::DB [sqlite3_connection_pointer db]
@@ -736,8 +737,8 @@
     catchsql {
       PRAGMA incremental_vacuum(10);
     } db3
+    db3 close
   } {1 {file is encrypted or is not a database}}
-  db3 close
 }
 
 do_test incrvacuum-15.1 {
--- test/vacuum4.test
+++ test/vacuum4.test
@@ -65,3 +65,5 @@ do_test vacuum4-1.1 {
     VACUUM;
   }
 } {}
+
+finish_test