diff options
author | Kir Kolyshkin <kolyshkin@gmail.com> | 2021-04-23 00:54:04 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2021-09-03 20:31:00 +0300 |
commit | b20694835d6ca50cb2c03c78e98ab9ce8a843765 (patch) | |
tree | 1b58beab02814466c20ed05ae06585f5e9520a8c /test/zdtm/static/sk-unix-unconn.c | |
parent | 9cbcaaed39c62e99ef45ea6df1926153884aa5ba (diff) |
test/zdtm: don't use \n with fail()
Macro fail already appends \n to the 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(.*\\n"%s/\\n"/"/' $f
done
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Diffstat (limited to 'test/zdtm/static/sk-unix-unconn.c')
-rw-r--r-- | test/zdtm/static/sk-unix-unconn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/zdtm/static/sk-unix-unconn.c b/test/zdtm/static/sk-unix-unconn.c index 72d1348a8..91e3d433b 100644 --- a/test/zdtm/static/sk-unix-unconn.c +++ b/test/zdtm/static/sk-unix-unconn.c @@ -45,7 +45,7 @@ int main(int argc, char ** argv) ret = bind(sk, (struct sockaddr *) &addr, addrlen); if (ret) { - fail("bind\n"); + fail("bind"); return 1; } |