tests: reserve more fds for commandtest

Commit 39c77fe triggered random failures, depending on the platform
and what other fds leak into the testsuite (for me, it passed on
RHEL 6 but failed on Fedora 18).  The reason was that we were
expecting an fd that fell outside of our reserved range.  By reserving
a larger range, the test once again passes on all platforms.

* tests/commandtest.c (mymain): Reserve enough fds.
This commit is contained in:
Eric Blake
2013-02-05 09:15:20 -07:00
parent 753020dc2c
commit 3a9382ca2a
2 changed files with 12 additions and 3 deletions

View File

@@ -9,6 +9,6 @@ FD:0
FD:1
FD:2
FD:5
FD:8
FD:7
DAEMON:no
CWD:/tmp