Refactor test_escape.c for additional ways of testing.

Noah Misch <noah@leadboat.com>

Commit: f3bb0b2c4a1a09efa18a76a153269d24980163d4
Author: Noah Misch <noah@leadboat.com>
Date: 2025-05-05T11:52:07Z
Releases: 16.9
Refactor test_escape.c for additional ways of testing.

Start the file with static functions not specific to pe_test_vectors
tests.  This way, new tests can use them without disrupting the file's
layout.  Change report_result() PQExpBuffer arguments to plain strings.
Back-patch to v13 (all supported versions), for the next commit.

Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Backpatch-through: 13
Security: CVE-2025-4207

Files

PathChange+/−
src/test/modules/test_escape/test_escape.c modified +82 −80