Commit eabba4a3 authored by Fujii Masao's avatar Fujii Masao

Fix explain regression test failure.

Commit 9d701e62 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
parent 9d701e62
...@@ -23,6 +23,9 @@ begin ...@@ -23,6 +23,9 @@ begin
-- Ignore text-mode buffers output because it varies depending -- Ignore text-mode buffers output because it varies depending
-- on the system state -- on the system state
CONTINUE WHEN (ln ~ ' +Buffers: .*'); CONTINUE WHEN (ln ~ ' +Buffers: .*');
-- Ignore text-mode "Planning:" line because whether it's output
-- varies depending on the system state
CONTINUE WHEN (ln = 'Planning:');
return next ln; return next ln;
end loop; end loop;
end; end;
......
...@@ -25,6 +25,9 @@ begin ...@@ -25,6 +25,9 @@ begin
-- Ignore text-mode buffers output because it varies depending -- Ignore text-mode buffers output because it varies depending
-- on the system state -- on the system state
CONTINUE WHEN (ln ~ ' +Buffers: .*'); CONTINUE WHEN (ln ~ ' +Buffers: .*');
-- Ignore text-mode "Planning:" line because whether it's output
-- varies depending on the system state
CONTINUE WHEN (ln = 'Planning:');
return next ln; return next ln;
end loop; end loop;
end; end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment