Re: Adding facility for injection points (or probe points?) for more advanced tests

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Michael Paquier <michael@paquier.xyz>, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Cc: Dilip Kumar <dilipbalaut@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-01-22T19:02:48Z
Lists: pgsql-hackers
On 22/01/2024 18:08, Heikki Linnakangas wrote:
> I wrote the attached patch to enable injection points in the Cirrus CI
> config, to run the injection tests I wrote for a GIN bug today [1]. But
> that led to a crash in the asan-enabled build [2]. I didn't investigate
> it yet.

Pushed a fix for the crash.

What do you think of enabling this in the Cirrus CI config?

-- 
Heikki Linnakangas
Neon (https://neon.tech)




Commits

  1. ci: Enable injection points in builds

  2. Fix two memcpy() bugs in the new injection point code

  3. Add test module injection_points

  4. Add backend support for injection points

  5. Refactor code checking for file existence