Skip to content

Commit 64e193f

Browse files
committed
Make AIO error test more portable
Alpine Linux's C library (musl) spells one error message differently. Reported-by: Wolfgang Walther
1 parent f09088a commit 64e193f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/modules/test_aio/t/001_aio.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ sub test_inject
813813
"first hard IO error is reported",
814814
qq(SELECT count(*) FROM tbl_ok),
815815
qr/^$/,
816-
qr/ERROR:.*could not read blocks 2\.\.2 in file \"base\/.*\": Input\/output error/
816+
qr!ERROR:.*could not read blocks 2\.\.2 in file "base/.*": (?:I/O|Input/output) error!
817817
);
818818

819819
psql_like(
@@ -822,7 +822,7 @@ sub test_inject
822822
"second hard IO error is reported",
823823
qq(SELECT count(*) FROM tbl_ok),
824824
qr/^$/,
825-
qr/ERROR:.*could not read blocks 2\.\.2 in file \"base\/.*\": Input\/output error/
825+
qr!ERROR:.*could not read blocks 2\.\.2 in file "base/.*": (?:I/O|Input/output) error!
826826
);
827827

828828
$psql->query_safe(qq(SELECT inj_io_short_read_detach()));

0 commit comments

Comments
 (0)