Turn off benign console messages when testing on Postgres
authorKevin Rosenberg <kevin@rosenberg.net>
Sat, 6 Feb 2010 07:28:12 +0000 (00:28 -0700)
committerKevin Rosenberg <kevin@rosenberg.net>
Sat, 6 Feb 2010 07:28:12 +0000 (00:28 -0700)
ChangeLog
tests/test-init.lisp

index 572da10ac181be33ccbddcbe9038f067c26f1bea..29c63d0f3ccfbe5ef1d34f78e1de7bda0ef980f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-06  Kevin Rosenberg <kevin@rosenberg.net>
+       * tests/test-init.lisp: Turn off the benign console notices for
+       testing on postgres.
+
 2010-02-05  Kevin Rosenberg <kevin@rosenberg.net>
        * clsql-test.asd, tests/{test-i18n,test-init}.lisp: 
        Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is
index 2481e8321a8bdf754602fda8a726986164dd31ac..c11a273155d013ed056b43fdef5628d0eb087a43 100644 (file)
   (setf *test-database-underlying-type*
         (clsql-sys:database-underlying-type *default-database*))
 
+  ;; If Postgres, turn off notices to console
+  (when (eql db-type :postgresql)
+    (clsql:execute-command "SET client_min_messages = WARNING"))
+
   *default-database*)
 
 (defun default-suites ()