Adjust XML test case to avoid unstable behavior.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 1 Sep 2022 02:21:32 +0000 (22:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 1 Sep 2022 02:21:39 +0000 (22:21 -0400)
commit4ea07e7cf3c6b5ff7a7059c223fa54241533b0a5
treed098758c026e2d4e98a2839d2ebdfb3efcde5abd
parentfede15417225c08479fc6cd10812a25826c65f86
Adjust XML test case to avoid unstable behavior.

Buildfarm member bowerbird is (inconsistently) showing different
results for this test case since we enabled ASLR for MSVC builds.
It's not very clear whether that's a bug in its version of libxml2
or the test case is relying on nominally-undefined behavior, ie the
ordering of results from XPath's node().  It seems quite unlikely
that it's *our* bug though, and what's more, using node() adds
nothing to the test coverage so far as our code is concerned.
So, tweak the test to not use node().

For the moment, only change HEAD because we've only seen the
problem there.  Perhaps a case will emerge for back-patching.

Discussion: https://postgr.es/m/2655387.1661695793@sss.pgh.pa.us
src/test/regress/expected/xml.out
src/test/regress/expected/xml_1.out
src/test/regress/expected/xml_2.out
src/test/regress/sql/xml.sql