Skip to content

Commit 608c5f4

Browse files
committed
Make the integerset test more verbose.
Buildfarm member 'woodlouse' failed one of the tests, and I'm not sure which test failed. Better to print the names of the tests, so that it will appear in the regression.diffs on failure.
1 parent d1b9ee4 commit 608c5f4

File tree

2 files changed

+24
-11
lines changed

2 files changed

+24
-11
lines changed

src/test/modules/test_integerset/expected/test_integerset.out

+22-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
CREATE EXTENSION test_integerset;
22
--
3-
-- These tests don't produce any interesting output. We're checking that
4-
-- the operations complete without crashing or hanging and that none of their
5-
-- internal sanity tests fail. They print progress information as INFOs,
6-
-- which are not interesting for automated tests, so suppress those.
3+
-- All the logic is in the test_integerset() function. It will throw
4+
-- an error if something fails.
75
--
8-
SET client_min_messages = 'warning';
96
SELECT test_integerset();
7+
NOTICE: testing intset with empty set
8+
NOTICE: testing intset with distances > 2^60 between values
9+
NOTICE: testing intset with single value 0
10+
NOTICE: testing intset with single value 1
11+
NOTICE: testing intset with single value 18446744073709551614
12+
NOTICE: testing intset with single value 18446744073709551615
13+
NOTICE: testing intset with value 0, and all between 1000 and 2000
14+
NOTICE: testing intset with value 1, and all between 1000 and 2000
15+
NOTICE: testing intset with value 1, and all between 1000 and 2000000
16+
NOTICE: testing intset with value 18446744073709551614, and all between 1000 and 2000
17+
NOTICE: testing intset with value 18446744073709551615, and all between 1000 and 2000
18+
NOTICE: testing intset with pattern "all ones"
19+
NOTICE: testing intset with pattern "alternating bits"
20+
NOTICE: testing intset with pattern "clusters of ten"
21+
NOTICE: testing intset with pattern "clusters of hundred"
22+
NOTICE: testing intset with pattern "one-every-64k"
23+
NOTICE: testing intset with pattern "sparse"
24+
NOTICE: testing intset with pattern "single values, distance > 2^32"
25+
NOTICE: testing intset with pattern "clusters, distance > 2^32"
26+
NOTICE: testing intset with pattern "clusters, distance > 2^60"
1027
test_integerset
1128
-----------------
1229

Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
CREATE EXTENSION test_integerset;
22

33
--
4-
-- These tests don't produce any interesting output. We're checking that
5-
-- the operations complete without crashing or hanging and that none of their
6-
-- internal sanity tests fail. They print progress information as INFOs,
7-
-- which are not interesting for automated tests, so suppress those.
4+
-- All the logic is in the test_integerset() function. It will throw
5+
-- an error if something fails.
86
--
9-
SET client_min_messages = 'warning';
10-
117
SELECT test_integerset();

0 commit comments

Comments
 (0)