From: Martin Loviska <mloviska@suse.de>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] Wait for complete input provided by `seq`
Date: Wed, 3 Mar 2021 14:24:03 +0100 [thread overview]
Message-ID: <20210303132403.6427-1-mloviska@suse.de> (raw)
From: mloviska <mloviska@suse.com>
`splice02` may exit before `seq` therefore broken pipe occurs.
Found with SLES JeOS (https://progress.opensuse.org/issues/77260).
Suggested-by: Fabian Vogt <fvogt@suse.de>
Tested-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Martin Loviska <mloviska@suse.com>
---
runtest/smoketest | 2 +-
runtest/syscalls | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtest/smoketest b/runtest/smoketest
index 0c24fc1fa..e6800d283 100644
--- a/runtest/smoketest
+++ b/runtest/smoketest
@@ -11,5 +11,5 @@ symlink01 symlink01
stat04 symlink01 -T stat04
utime01A symlink01 -T utime01
rename01A symlink01 -T rename01
-splice02 seq 1 20 | splice02
+splice02 (seq 1 20 || :) | splice02
route4-change-dst route-change-dst.sh
diff --git a/runtest/syscalls b/runtest/syscalls
index fe22ae5b6..13b87e6bc 100644
--- a/runtest/syscalls
+++ b/runtest/syscalls
@@ -1446,7 +1446,7 @@ socketpair02 socketpair02
sockioctl01 sockioctl01
splice01 splice01
-splice02 seq 1 20000 | splice02
+splice02 (seq 1 20000 || :) | splice02
splice03 splice03
splice04 splice04
splice05 splice05
--
2.30.1
next reply other threads:[~2021-03-03 13:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 13:24 Martin Loviska [this message]
2021-03-03 13:30 ` [LTP] [PATCH] Wait for complete input provided by `seq` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210303132403.6427-1-mloviska@suse.de \
--to=mloviska@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox