Skip to content

Commit

Permalink
make test: Don't track NOTICEs
Browse files Browse the repository at this point in the history
There's little value in tracking the noise of NOTICEs emitted during
loading pg_sphere.test.sql, so just mute them.

The gain from this change is that future patches will not have to update
the changed line numbers in the output tracked. (Cf. c2a2351)
  • Loading branch information
df7cb committed Oct 6, 2023
1 parent e64212e commit 8138fc1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 44 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ ifeq ($(has_explain_summary),y)
endif
endif

test: pg_sphere.test.sql sql/init_test.sql
cp expected/init_test.out.in expected/init_test.out
ifneq ($(USE_HEALPIX),0)
cat expected/init_test_healpix.out.in >> expected/init_test.out
endif
test: pg_sphere.test.sql
$(pg_regress_installcheck) --temp-instance=tmp_check $(REGRESS_OPTS) $(TESTS)

pg_sphere.test.sql: $(RELEASE_SQL) $(shlib)
Expand Down
2 changes: 2 additions & 0 deletions expected/init_test.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SET client_min_messages TO WARNING;
\set ECHO none
35 changes: 0 additions & 35 deletions expected/init_test.out.in

This file was deleted.

2 changes: 0 additions & 2 deletions expected/init_test_healpix.out.in

This file was deleted.

3 changes: 1 addition & 2 deletions sql/init_test.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SET client_min_messages TO NOTICE;
SET client_min_messages TO WARNING;
\set ECHO none
\i pg_sphere.test.sql
\set ECHO all

0 comments on commit 8138fc1

Please sign in to comment.