Skip to content
Snippets Groups Projects
Commit faf76dd7 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé 💬
Browse files

tests: avoid close of bad file handle in commandtest


Closed file handles need to be initialized to -1, not 0. This caused a
inappropriate double close of stdin, which is not desirable, although
it had no ill effects.

Reviewed-by: Eric Blake's avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent 946c8150
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment