iotests: fix copy-before-write for macOS and FreeBSD
commit05b47eec90849b9b40c95f7ab52377385c6c64e2
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Tue, 5 Jul 2022 15:37:08 +0000 (5 18:37 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 12 Jul 2022 07:51:02 +0000 (12 13:21 +0530)
tree21d241f05473b646d918f6081f28d568024d5e70
parentf085ba292bb399b029add02269dd395b16d211bd
iotests: fix copy-before-write for macOS and FreeBSD

strerror() represents ETIMEDOUT a bit different in Linux and macOS /
FreeBSD. Let's support the latter too.

Fixes: 9d05a87b77 ("iotests: copy-before-write: add cases for cbw-timeout option")
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Tested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220705153708.186418-1-vsementsov@yandex-team.ru>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tests/qemu-iotests/tests/copy-before-write