Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bc2ebf3

Browse files
committed
Fix explain regression test failure.
Commit 9d701e624f caused the regression test for EXPLAIN to fail on the buildfarm member prion. This happened because of instability of test output, i.e., in text format, whether "Planning:" line is output varies depending on the system state. This commit updated the regression test so that it ignores that "Planning:" line to produce more stable test output and get rid of the test failure. Back-patch to v13. Author: Fujii Masao Discussion: https://postgr.es/m/1803897.1598021621@sss.pgh.pa.us
1 parent 674899a commit bc2ebf3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/test/regress/expected/explain.out

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ begin
2323
-- Ignore text-mode buffers output because it varies depending
2424
-- on the system state
2525
CONTINUE WHEN (ln ~ ' +Buffers: .*');
26+
-- Ignore text-mode "Planning:" line because whether it's output
27+
-- varies depending on the system state
28+
CONTINUE WHEN (ln = 'Planning:');
2629
return next ln;
2730
end loop;
2831
end;

src/test/regress/sql/explain.sql

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ begin
2525
-- Ignore text-mode buffers output because it varies depending
2626
-- on the system state
2727
CONTINUE WHEN (ln ~ ' +Buffers: .*');
28+
-- Ignore text-mode "Planning:" line because whether it's output
29+
-- varies depending on the system state
30+
CONTINUE WHEN (ln = 'Planning:');
2831
return next ln;
2932
end loop;
3033
end;

0 commit comments

Comments
 (0)