Skip to content

Commit 81914af

Browse files
committed
Only run wal_explain test on PG17+
wal_explain can be flaky at times so skip it on older PG versions
1 parent b5678b4 commit 81914af

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

tsl/test/sql/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ set(TEST_TEMPLATES
110110
transparent_decompression.sql.in
111111
transparent_decompression_ordered_index.sql.in)
112112

113-
# WAL numbers will differ on 32-bit platform so we only run on 64-bit
114-
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
115-
list(APPEND TEST_FILES explain_wal.sql)
116-
endif()
117-
118113
if(USE_TELEMETRY)
119114
list(APPEND TEST_FILES bgw_telemetry.sql)
120115
endif()
@@ -227,6 +222,12 @@ if((${PG_VERSION_MAJOR} GREATER_EQUAL "16"))
227222
endif()
228223

229224
if((${PG_VERSION_MAJOR} GREATER_EQUAL "17"))
225+
# WAL numbers will differ on 32-bit platform so we only run on 64-bit only run
226+
# on PG17+ since the test can be flaky at times
227+
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
228+
list(APPEND TEST_FILES explain_wal.sql)
229+
endif()
230+
230231
list(APPEND TEST_FILES privilege_maintain.sql
231232
merge_append_partially_compressed.sql)
232233
endif()

0 commit comments

Comments
 (0)