diff options
author | Kir Kolyshkin <kolyshkin@gmail.com> | 2021-04-23 00:24:31 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2021-09-03 20:31:00 +0300 |
commit | 12a2bd0eddecfc8655857854edc03711522aacb9 (patch) | |
tree | 819bac17da4feecdd94a736620ed8cbef68becaa /test/zdtm/static/unbound_sock.c | |
parent | b20694835d6ca50cb2c03c78e98ab9ce8a843765 (diff) |
test/zdtm: don't use %m with fail
Macro fail already appends errno and strerror(errno) to the error
message, so there's no need to do it explicitly.
Brought to you by
for f in $(git grep -l fail test/zdtm); do
test -f $f || continue
echo $f
sed -i '\|^[[:space:]]*fail(.*[ (]%m)*"|s/:*[ (]*%m)*//' $f
done
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Diffstat (limited to 'test/zdtm/static/unbound_sock.c')
-rw-r--r-- | test/zdtm/static/unbound_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/zdtm/static/unbound_sock.c b/test/zdtm/static/unbound_sock.c index be8318c5f..f1d610d20 100644 --- a/test/zdtm/static/unbound_sock.c +++ b/test/zdtm/static/unbound_sock.c @@ -33,7 +33,7 @@ int main(int argc, char ** argv) test_waitsig(); if (bind(sock, (struct sockaddr *) &name, sizeof(name)) < 0) - fail("can't bind to a socket: %m"); + fail("can't bind to a socket"); else pass(); |