summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-06 20:08:02 +0200
committerGitHub <noreply@github.com>2021-10-06 20:08:02 +0200
commit03c17e94078236531b02ab437721853a09df119f (patch)
tree27cd9b717db7c10b72da3b7bd4bd83272f3a8cb0 /test
parent36504be96705423349ad437efab0cfc745085881 (diff)
parentfbce7584d786ed99354a4b33a9c127abd673c3bb (diff)
downloadpodman-03c17e94078236531b02ab437721853a09df119f.tar.gz
podman-03c17e94078236531b02ab437721853a09df119f.tar.bz2
podman-03c17e94078236531b02ab437721853a09df119f.zip
Merge pull request #11864 from Luap99/close
libpod: fix race when closing STDIN
Diffstat (limited to 'test')
-rw-r--r--test/system/030-run.bats6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats
index 4080f08b4..44c2ee509 100644
--- a/test/system/030-run.bats
+++ b/test/system/030-run.bats
@@ -725,4 +725,10 @@ EOF
is "$output" "Error: strconv.ParseInt: parsing \"a\": invalid syntax"
}
+@test "podman run closes stdin" {
+ random_1=$(random_string 25)
+ run_podman run -i --rm $IMAGE cat <<<"$random_1"
+ is "$output" "$random_1" "output matches STDIN"
+}
+
# vim: filetype=sh