aboutsummaryrefslogtreecommitdiff
path: root/test/wal_common.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'test/wal_common.tcl')
-rw-r--r--test/wal_common.tcl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/wal_common.tcl b/test/wal_common.tcl
index a5b165d5e..917ad598f 100644
--- a/test/wal_common.tcl
+++ b/test/wal_common.tcl
@@ -18,7 +18,9 @@ proc wal_file_size {nFrame pgsz} {
}
proc wal_frame_count {zFile pgsz} {
+ if {[file exists $zFile]==0} { return 0 }
set f [file size $zFile]
+ if {$f < 32} { return 0 }
expr {($f - 32) / ($pgsz+24)}
}