Skip to content

Commit

Permalink
fix regression tests to work on 9.0 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
tvondra committed Jan 4, 2015
1 parent c098bcc commit adbb9a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/expected/base.out
@@ -1,5 +1,4 @@
BEGIN;
CREATE EXTENSION trimmed_aggregates;
\set ECHO 0
-- the regression tests round the values a bit so that rounding errors don't trigger failures
-- wrapper to handle rounding for double precision values
CREATE OR REPLACE FUNCTION round(p_val double precision, p_digits int) RETURNS double precision AS $$
Expand Down
9 changes: 8 additions & 1 deletion test/sql/base.sql
@@ -1,5 +1,12 @@
\set ECHO 0
BEGIN;
CREATE EXTENSION trimmed_aggregates;

-- disable the notices for the create script (shell types etc.)
SET client_min_messages = 'WARNING';
\i sql/trimmed_aggregates--1.2.2.sql
SET client_min_messages = 'NOTICE';

\set ECHO all

-- the regression tests round the values a bit so that rounding errors don't trigger failures
-- wrapper to handle rounding for double precision values
Expand Down

0 comments on commit adbb9a2

Please sign in to comment.