From 4d282ef8435b5462f10e28873c85ab4d960b9fea Mon Sep 17 00:00:00 2001 From: Kevin Rosenberg Date: Sat, 6 Feb 2010 00:28:12 -0700 Subject: [PATCH] Turn off benign console messages when testing on Postgres --- ChangeLog | 4 ++++ tests/test-init.lisp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 572da10..29c63d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-02-06 Kevin Rosenberg + * tests/test-init.lisp: Turn off the benign console notices for + testing on postgres. + 2010-02-05 Kevin Rosenberg * clsql-test.asd, tests/{test-i18n,test-init}.lisp: Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is diff --git a/tests/test-init.lisp b/tests/test-init.lisp index 2481e83..c11a273 100644 --- a/tests/test-init.lisp +++ b/tests/test-init.lisp @@ -63,6 +63,10 @@ (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 () -- 2.34.1