1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-18 13:44:19 +03:00

Make AIO error test more portable

Alpine Linux's C library (musl) spells one error message differently.

Reported-by: Wolfgang Walther
This commit is contained in:
Andrew Dunstan 2025-04-13 14:39:45 -04:00
parent f09088a01d
commit 64e193f5dd

View File

@ -813,7 +813,7 @@ SELECT invalidate_rel_block('tbl_ok', 2);
"first hard IO error is reported",
qq(SELECT count(*) FROM tbl_ok),
qr/^$/,
qr/ERROR:.*could not read blocks 2\.\.2 in file \"base\/.*\": Input\/output error/
qr!ERROR:.*could not read blocks 2\.\.2 in file "base/.*": (?:I/O|Input/output) error!
);
psql_like(
@ -822,7 +822,7 @@ SELECT invalidate_rel_block('tbl_ok', 2);
"second hard IO error is reported",
qq(SELECT count(*) FROM tbl_ok),
qr/^$/,
qr/ERROR:.*could not read blocks 2\.\.2 in file \"base\/.*\": Input\/output error/
qr!ERROR:.*could not read blocks 2\.\.2 in file "base/.*": (?:I/O|Input/output) error!
);
$psql->query_safe(qq(SELECT inj_io_short_read_detach()));