Megatest

Diff
Login

Differences From Artifact [1e23489cd0]:

To Artifact [aa6e9ff977]:


216
217
218
219
220
221
222
223

224
225
226


227
228
229
230
231
232
233
216
217
218
219
220
221
222

223
224
225

226
227
228
229
230
231
232
233
234







-
+


-
+
+







       (pathname-file *toppath*)))

;;======================================================================
;; E X I T   H A N D L I N G
;;======================================================================

(define (std-exit-procedure)
  (debug:print-info 0 "starting exit process, finalizing databases.")
  (debug:print-info 2 "starting exit process, finalizing databases.")
  (rmt:print-db-stats)
  (let ((run-ids (hash-table-keys *db-local-sync*)))
    (if (not (null? run-ids))
    (if (and (not (null? run-ids))
	     (configf:lookup *configdat* "setup" "megatest-db"))
	(db:multi-db-sync run-ids 'new2old)))
  (if *dbstruct-db* (db:close-all *dbstruct-db*))
  (if (and *megatest-db*
	   (sqlite3:database? *megatest-db*))
      (begin
	(sqlite3:interrupt! *megatest-db*)
	(sqlite3:finalize! *megatest-db* #t)