Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix explain regression test failure.
authorFujii Masao <fujii@postgresql.org>
Fri, 21 Aug 2020 16:22:55 +0000 (01:22 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 21 Aug 2020 16:50:05 +0000 (01:50 +0900)
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

src/test/regress/expected/explain.out
src/test/regress/sql/explain.sql

index a1ee6c6792560d8eea94b6f9641b4c27292f4304..dc7ab2ce8bfb5a6ed85abbedd10ddb4cb5bc7d50 100644 (file)
@@ -23,6 +23,9 @@ begin
         -- Ignore text-mode buffers output because it varies depending
         -- on the system state
         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;
     end loop;
 end;
index 01783c607aa06ae9bdf7df81775a523928210c77..c79116c927b156db631f38348062477a1688b4a0 100644 (file)
@@ -25,6 +25,9 @@ begin
         -- Ignore text-mode buffers output because it varies depending
         -- on the system state
         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;
     end loop;
 end;