diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-06 20:08:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 20:08:02 +0200 |
commit | 03c17e94078236531b02ab437721853a09df119f (patch) | |
tree | 27cd9b717db7c10b72da3b7bd4bd83272f3a8cb0 /test | |
parent | 36504be96705423349ad437efab0cfc745085881 (diff) | |
parent | fbce7584d786ed99354a4b33a9c127abd673c3bb (diff) | |
download | podman-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.bats | 6 |
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 |